@lazycatcloud/sdk 0.1.193 → 0.1.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/apk_shell.d.ts +48 -8
- package/dist/common/apk_shell.d.ts.map +1 -1
- package/dist/common/apk_shell.js +122 -25
- package/dist/common/apk_shell.js.map +1 -1
- package/dist/common/appshell.d.ts +83 -85
- package/dist/common/appshell.d.ts.map +1 -1
- package/dist/common/appshell.js +241 -228
- package/dist/common/appshell.js.map +1 -1
- package/dist/common/box.d.ts +127 -16
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +140 -55
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +38 -10
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +94 -32
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +101 -14
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +123 -42
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +70 -14
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +103 -36
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +855 -55
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +412 -163
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +60 -14
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +126 -43
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/media_meta.d.ts +27 -8
- package/dist/common/media_meta.d.ts.map +1 -1
- package/dist/common/media_meta.js +52 -21
- package/dist/common/media_meta.js.map +1 -1
- package/dist/common/message.d.ts +106 -16
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +133 -58
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +141 -18
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +140 -56
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +54 -15
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +119 -47
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +98 -23
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +216 -83
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +107 -18
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +174 -60
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54717 -4254
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +738 -257
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +8 -4
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +9 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +18 -8
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/lanforward/lanforward.d.ts +65 -84
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +197 -217
- package/dist/localdevice/clipboard.d.ts +35 -12
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +75 -37
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +42 -11
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +95 -32
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +18 -6
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +44 -12
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +68 -18
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +141 -52
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +70 -18
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +170 -67
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +14 -6
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +36 -10
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +61 -16
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +109 -51
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +192 -28
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +307 -111
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +73 -92
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +226 -246
- package/dist/sys/OS_daemon.d.ts +35 -12
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +65 -31
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +180 -32
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +290 -126
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +65 -14
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +129 -59
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/box-status.d.ts +217 -18
- package/dist/sys/box-status.d.ts.map +1 -1
- package/dist/sys/box-status.js +157 -60
- package/dist/sys/box-status.js.map +1 -1
- package/dist/sys/btled.d.ts +192 -0
- package/dist/sys/btled.d.ts.map +1 -0
- package/dist/sys/btled.js +403 -0
- package/dist/sys/btled.js.map +1 -0
- package/dist/sys/btrfs.d.ts +59 -16
- package/dist/sys/btrfs.d.ts.map +1 -1
- package/dist/sys/btrfs.js +112 -48
- package/dist/sys/btrfs.js.map +1 -1
- package/dist/sys/devopt.d.ts +20 -6
- package/dist/sys/devopt.d.ts.map +1 -1
- package/dist/sys/devopt.js +51 -15
- package/dist/sys/devopt.js.map +1 -1
- package/dist/sys/dirmon.d.ts +23 -8
- package/dist/sys/dirmon.d.ts.map +1 -1
- package/dist/sys/dirmon.js +44 -23
- package/dist/sys/dirmon.js.map +1 -1
- package/dist/sys/event.d.ts +90 -18
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +154 -55
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +244 -32
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +258 -118
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +81 -24
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +160 -73
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/installer.d.ts +252 -0
- package/dist/sys/installer.d.ts.map +1 -0
- package/dist/sys/installer.js +599 -0
- package/dist/sys/installer.js.map +1 -0
- package/dist/sys/network_manager.d.ts +137 -16
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +156 -55
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +342 -42
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +498 -158
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +443 -71
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +880 -283
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +105 -18
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +157 -61
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
6
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.Install2Request = exports.InstallRequest = exports.PkgURL = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
9
|
const browser_headers_1 = require("browser-headers");
|
|
@@ -120,22 +120,29 @@ exports.PkgURL = {
|
|
|
120
120
|
return writer;
|
|
121
121
|
},
|
|
122
122
|
decode(input, length) {
|
|
123
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
123
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
124
124
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
125
125
|
const message = createBasePkgURL();
|
|
126
126
|
while (reader.pos < end) {
|
|
127
127
|
const tag = reader.uint32();
|
|
128
128
|
switch (tag >>> 3) {
|
|
129
129
|
case 1:
|
|
130
|
+
if (tag != 10) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
130
133
|
message.url = reader.string();
|
|
131
|
-
|
|
134
|
+
continue;
|
|
132
135
|
case 2:
|
|
136
|
+
if (tag != 18) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
133
139
|
message.sha256 = reader.string();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
143
|
+
break;
|
|
138
144
|
}
|
|
145
|
+
reader.skipType(tag & 7);
|
|
139
146
|
}
|
|
140
147
|
return message;
|
|
141
148
|
},
|
|
@@ -151,6 +158,9 @@ exports.PkgURL = {
|
|
|
151
158
|
message.sha256 !== undefined && (obj.sha256 = message.sha256);
|
|
152
159
|
return obj;
|
|
153
160
|
},
|
|
161
|
+
create(base) {
|
|
162
|
+
return exports.PkgURL.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
163
|
+
},
|
|
154
164
|
fromPartial(object) {
|
|
155
165
|
var _a, _b;
|
|
156
166
|
const message = createBasePkgURL();
|
|
@@ -182,31 +192,47 @@ exports.InstallRequest = {
|
|
|
182
192
|
return writer;
|
|
183
193
|
},
|
|
184
194
|
decode(input, length) {
|
|
185
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
195
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
186
196
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
187
197
|
const message = createBaseInstallRequest();
|
|
188
198
|
while (reader.pos < end) {
|
|
189
199
|
const tag = reader.uint32();
|
|
190
200
|
switch (tag >>> 3) {
|
|
191
201
|
case 1:
|
|
202
|
+
if (tag != 10) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
192
205
|
message.appid = reader.string();
|
|
193
|
-
|
|
206
|
+
continue;
|
|
194
207
|
case 2:
|
|
208
|
+
if (tag != 18) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
195
211
|
message.url = reader.string();
|
|
196
|
-
|
|
212
|
+
continue;
|
|
197
213
|
case 3:
|
|
214
|
+
if (tag != 26) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
198
217
|
message.sha256 = reader.string();
|
|
199
|
-
|
|
218
|
+
continue;
|
|
200
219
|
case 4:
|
|
220
|
+
if (tag != 34) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
201
223
|
message.subdomain = reader.string();
|
|
202
|
-
|
|
224
|
+
continue;
|
|
203
225
|
case 5:
|
|
226
|
+
if (tag != 40) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
204
229
|
message.noResume = reader.bool();
|
|
205
|
-
|
|
206
|
-
default:
|
|
207
|
-
reader.skipType(tag & 7);
|
|
208
|
-
break;
|
|
230
|
+
continue;
|
|
209
231
|
}
|
|
232
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
reader.skipType(tag & 7);
|
|
210
236
|
}
|
|
211
237
|
return message;
|
|
212
238
|
},
|
|
@@ -228,6 +254,9 @@ exports.InstallRequest = {
|
|
|
228
254
|
message.noResume !== undefined && (obj.noResume = message.noResume);
|
|
229
255
|
return obj;
|
|
230
256
|
},
|
|
257
|
+
create(base) {
|
|
258
|
+
return exports.InstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
259
|
+
},
|
|
231
260
|
fromPartial(object) {
|
|
232
261
|
var _a, _b, _c, _d, _e;
|
|
233
262
|
const message = createBaseInstallRequest();
|
|
@@ -239,6 +268,70 @@ exports.InstallRequest = {
|
|
|
239
268
|
return message;
|
|
240
269
|
},
|
|
241
270
|
};
|
|
271
|
+
function createBaseInstall2Request() {
|
|
272
|
+
return { dataBlock: new Uint8Array(), endOfFile: false };
|
|
273
|
+
}
|
|
274
|
+
exports.Install2Request = {
|
|
275
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
276
|
+
if (message.dataBlock.length !== 0) {
|
|
277
|
+
writer.uint32(10).bytes(message.dataBlock);
|
|
278
|
+
}
|
|
279
|
+
if (message.endOfFile === true) {
|
|
280
|
+
writer.uint32(16).bool(message.endOfFile);
|
|
281
|
+
}
|
|
282
|
+
return writer;
|
|
283
|
+
},
|
|
284
|
+
decode(input, length) {
|
|
285
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
286
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
287
|
+
const message = createBaseInstall2Request();
|
|
288
|
+
while (reader.pos < end) {
|
|
289
|
+
const tag = reader.uint32();
|
|
290
|
+
switch (tag >>> 3) {
|
|
291
|
+
case 1:
|
|
292
|
+
if (tag != 10) {
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
message.dataBlock = reader.bytes();
|
|
296
|
+
continue;
|
|
297
|
+
case 2:
|
|
298
|
+
if (tag != 16) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.endOfFile = reader.bool();
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
reader.skipType(tag & 7);
|
|
308
|
+
}
|
|
309
|
+
return message;
|
|
310
|
+
},
|
|
311
|
+
fromJSON(object) {
|
|
312
|
+
return {
|
|
313
|
+
dataBlock: isSet(object.dataBlock) ? bytesFromBase64(object.dataBlock) : new Uint8Array(),
|
|
314
|
+
endOfFile: isSet(object.endOfFile) ? Boolean(object.endOfFile) : false,
|
|
315
|
+
};
|
|
316
|
+
},
|
|
317
|
+
toJSON(message) {
|
|
318
|
+
const obj = {};
|
|
319
|
+
message.dataBlock !== undefined &&
|
|
320
|
+
(obj.dataBlock = base64FromBytes(message.dataBlock !== undefined ? message.dataBlock : new Uint8Array()));
|
|
321
|
+
message.endOfFile !== undefined && (obj.endOfFile = message.endOfFile);
|
|
322
|
+
return obj;
|
|
323
|
+
},
|
|
324
|
+
create(base) {
|
|
325
|
+
return exports.Install2Request.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
326
|
+
},
|
|
327
|
+
fromPartial(object) {
|
|
328
|
+
var _a, _b;
|
|
329
|
+
const message = createBaseInstall2Request();
|
|
330
|
+
message.dataBlock = (_a = object.dataBlock) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
331
|
+
message.endOfFile = (_b = object.endOfFile) !== null && _b !== void 0 ? _b : false;
|
|
332
|
+
return message;
|
|
333
|
+
},
|
|
334
|
+
};
|
|
242
335
|
function createBaseUninstallRequest() {
|
|
243
336
|
return { appid: "", clearData: false };
|
|
244
337
|
}
|
|
@@ -253,22 +346,29 @@ exports.UninstallRequest = {
|
|
|
253
346
|
return writer;
|
|
254
347
|
},
|
|
255
348
|
decode(input, length) {
|
|
256
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
349
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
257
350
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
258
351
|
const message = createBaseUninstallRequest();
|
|
259
352
|
while (reader.pos < end) {
|
|
260
353
|
const tag = reader.uint32();
|
|
261
354
|
switch (tag >>> 3) {
|
|
262
355
|
case 1:
|
|
356
|
+
if (tag != 10) {
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
263
359
|
message.appid = reader.string();
|
|
264
|
-
|
|
360
|
+
continue;
|
|
265
361
|
case 2:
|
|
362
|
+
if (tag != 16) {
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
266
365
|
message.clearData = reader.bool();
|
|
267
|
-
|
|
268
|
-
default:
|
|
269
|
-
reader.skipType(tag & 7);
|
|
270
|
-
break;
|
|
366
|
+
continue;
|
|
271
367
|
}
|
|
368
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
reader.skipType(tag & 7);
|
|
272
372
|
}
|
|
273
373
|
return message;
|
|
274
374
|
},
|
|
@@ -284,6 +384,9 @@ exports.UninstallRequest = {
|
|
|
284
384
|
message.clearData !== undefined && (obj.clearData = message.clearData);
|
|
285
385
|
return obj;
|
|
286
386
|
},
|
|
387
|
+
create(base) {
|
|
388
|
+
return exports.UninstallRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
389
|
+
},
|
|
287
390
|
fromPartial(object) {
|
|
288
391
|
var _a, _b;
|
|
289
392
|
const message = createBaseUninstallRequest();
|
|
@@ -306,22 +409,29 @@ exports.AppDownloadProgress = {
|
|
|
306
409
|
return writer;
|
|
307
410
|
},
|
|
308
411
|
decode(input, length) {
|
|
309
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
412
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
310
413
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
414
|
const message = createBaseAppDownloadProgress();
|
|
312
415
|
while (reader.pos < end) {
|
|
313
416
|
const tag = reader.uint32();
|
|
314
417
|
switch (tag >>> 3) {
|
|
315
418
|
case 1:
|
|
419
|
+
if (tag != 8) {
|
|
420
|
+
break;
|
|
421
|
+
}
|
|
316
422
|
message.current = longToNumber(reader.uint64());
|
|
317
|
-
|
|
423
|
+
continue;
|
|
318
424
|
case 2:
|
|
425
|
+
if (tag != 16) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
319
428
|
message.total = longToNumber(reader.uint64());
|
|
320
|
-
|
|
321
|
-
default:
|
|
322
|
-
reader.skipType(tag & 7);
|
|
323
|
-
break;
|
|
429
|
+
continue;
|
|
324
430
|
}
|
|
431
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
reader.skipType(tag & 7);
|
|
325
435
|
}
|
|
326
436
|
return message;
|
|
327
437
|
},
|
|
@@ -337,6 +447,9 @@ exports.AppDownloadProgress = {
|
|
|
337
447
|
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
338
448
|
return obj;
|
|
339
449
|
},
|
|
450
|
+
create(base) {
|
|
451
|
+
return exports.AppDownloadProgress.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
452
|
+
},
|
|
340
453
|
fromPartial(object) {
|
|
341
454
|
var _a, _b;
|
|
342
455
|
const message = createBaseAppDownloadProgress();
|
|
@@ -394,46 +507,77 @@ exports.AppInfo = {
|
|
|
394
507
|
return writer;
|
|
395
508
|
},
|
|
396
509
|
decode(input, length) {
|
|
397
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
510
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
398
511
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
399
512
|
const message = createBaseAppInfo();
|
|
400
513
|
while (reader.pos < end) {
|
|
401
514
|
const tag = reader.uint32();
|
|
402
515
|
switch (tag >>> 3) {
|
|
403
516
|
case 1:
|
|
517
|
+
if (tag != 10) {
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
404
520
|
message.appid = reader.string();
|
|
405
|
-
|
|
521
|
+
continue;
|
|
406
522
|
case 2:
|
|
523
|
+
if (tag != 16) {
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
407
526
|
message.status = reader.int32();
|
|
408
|
-
|
|
527
|
+
continue;
|
|
409
528
|
case 3:
|
|
529
|
+
if (tag != 26) {
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
410
532
|
message.version = reader.string();
|
|
411
|
-
|
|
533
|
+
continue;
|
|
412
534
|
case 4:
|
|
535
|
+
if (tag != 34) {
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
413
538
|
message.title = reader.string();
|
|
414
|
-
|
|
539
|
+
continue;
|
|
415
540
|
case 5:
|
|
541
|
+
if (tag != 42) {
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
416
544
|
message.description = reader.string();
|
|
417
|
-
|
|
545
|
+
continue;
|
|
418
546
|
case 6:
|
|
547
|
+
if (tag != 50) {
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
419
550
|
message.icon = reader.string();
|
|
420
|
-
|
|
551
|
+
continue;
|
|
421
552
|
case 7:
|
|
553
|
+
if (tag != 58) {
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
422
556
|
message.domain = reader.string();
|
|
423
|
-
|
|
557
|
+
continue;
|
|
424
558
|
case 8:
|
|
559
|
+
if (tag != 66) {
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
425
562
|
message.downloadProgress = exports.AppDownloadProgress.decode(reader, reader.uint32());
|
|
426
|
-
|
|
563
|
+
continue;
|
|
427
564
|
case 9:
|
|
565
|
+
if (tag != 72) {
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
428
568
|
message.builtin = reader.bool();
|
|
429
|
-
|
|
569
|
+
continue;
|
|
430
570
|
case 10:
|
|
571
|
+
if (tag != 82) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
431
574
|
message.errorReason = reader.string();
|
|
432
|
-
|
|
433
|
-
default:
|
|
434
|
-
reader.skipType(tag & 7);
|
|
435
|
-
break;
|
|
575
|
+
continue;
|
|
436
576
|
}
|
|
577
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
reader.skipType(tag & 7);
|
|
437
581
|
}
|
|
438
582
|
return message;
|
|
439
583
|
},
|
|
@@ -469,6 +613,9 @@ exports.AppInfo = {
|
|
|
469
613
|
message.errorReason !== undefined && (obj.errorReason = message.errorReason);
|
|
470
614
|
return obj;
|
|
471
615
|
},
|
|
616
|
+
create(base) {
|
|
617
|
+
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
618
|
+
},
|
|
472
619
|
fromPartial(object) {
|
|
473
620
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
474
621
|
const message = createBaseAppInfo();
|
|
@@ -498,19 +645,23 @@ exports.QueryApplicationRequest = {
|
|
|
498
645
|
return writer;
|
|
499
646
|
},
|
|
500
647
|
decode(input, length) {
|
|
501
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
648
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
502
649
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
650
|
const message = createBaseQueryApplicationRequest();
|
|
504
651
|
while (reader.pos < end) {
|
|
505
652
|
const tag = reader.uint32();
|
|
506
653
|
switch (tag >>> 3) {
|
|
507
654
|
case 1:
|
|
655
|
+
if (tag != 10) {
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
508
658
|
message.appidList.push(reader.string());
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
659
|
+
continue;
|
|
660
|
+
}
|
|
661
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
662
|
+
break;
|
|
513
663
|
}
|
|
664
|
+
reader.skipType(tag & 7);
|
|
514
665
|
}
|
|
515
666
|
return message;
|
|
516
667
|
},
|
|
@@ -527,6 +678,9 @@ exports.QueryApplicationRequest = {
|
|
|
527
678
|
}
|
|
528
679
|
return obj;
|
|
529
680
|
},
|
|
681
|
+
create(base) {
|
|
682
|
+
return exports.QueryApplicationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
683
|
+
},
|
|
530
684
|
fromPartial(object) {
|
|
531
685
|
var _a;
|
|
532
686
|
const message = createBaseQueryApplicationRequest();
|
|
@@ -545,19 +699,23 @@ exports.QueryApplicationResponse = {
|
|
|
545
699
|
return writer;
|
|
546
700
|
},
|
|
547
701
|
decode(input, length) {
|
|
548
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
702
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
549
703
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
550
704
|
const message = createBaseQueryApplicationResponse();
|
|
551
705
|
while (reader.pos < end) {
|
|
552
706
|
const tag = reader.uint32();
|
|
553
707
|
switch (tag >>> 3) {
|
|
554
708
|
case 1:
|
|
709
|
+
if (tag != 10) {
|
|
710
|
+
break;
|
|
711
|
+
}
|
|
555
712
|
message.infoList.push(exports.AppInfo.decode(reader, reader.uint32()));
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
713
|
+
continue;
|
|
714
|
+
}
|
|
715
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
716
|
+
break;
|
|
560
717
|
}
|
|
718
|
+
reader.skipType(tag & 7);
|
|
561
719
|
}
|
|
562
720
|
return message;
|
|
563
721
|
},
|
|
@@ -574,6 +732,9 @@ exports.QueryApplicationResponse = {
|
|
|
574
732
|
}
|
|
575
733
|
return obj;
|
|
576
734
|
},
|
|
735
|
+
create(base) {
|
|
736
|
+
return exports.QueryApplicationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
737
|
+
},
|
|
577
738
|
fromPartial(object) {
|
|
578
739
|
var _a;
|
|
579
740
|
const message = createBaseQueryApplicationResponse();
|
|
@@ -618,37 +779,59 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
618
779
|
return writer;
|
|
619
780
|
},
|
|
620
781
|
decode(input, length) {
|
|
621
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
782
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
622
783
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
623
784
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
624
785
|
while (reader.pos < end) {
|
|
625
786
|
const tag = reader.uint32();
|
|
626
787
|
switch (tag >>> 3) {
|
|
627
788
|
case 1:
|
|
789
|
+
if (tag != 10) {
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
628
792
|
message.appid = reader.string();
|
|
629
|
-
|
|
793
|
+
continue;
|
|
630
794
|
case 2:
|
|
795
|
+
if (tag != 16) {
|
|
796
|
+
break;
|
|
797
|
+
}
|
|
631
798
|
message.needPkg = reader.bool();
|
|
632
|
-
|
|
799
|
+
continue;
|
|
633
800
|
case 3:
|
|
801
|
+
if (tag != 24) {
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
634
804
|
message.needData = reader.bool();
|
|
635
|
-
|
|
805
|
+
continue;
|
|
636
806
|
case 4:
|
|
807
|
+
if (tag != 32) {
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
637
810
|
message.needCache = reader.bool();
|
|
638
|
-
|
|
811
|
+
continue;
|
|
639
812
|
case 5:
|
|
813
|
+
if (tag != 40) {
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
640
816
|
message.needTmp = reader.bool();
|
|
641
|
-
|
|
817
|
+
continue;
|
|
642
818
|
case 6:
|
|
819
|
+
if (tag != 48) {
|
|
820
|
+
break;
|
|
821
|
+
}
|
|
643
822
|
message.needUserdata = reader.bool();
|
|
644
|
-
|
|
823
|
+
continue;
|
|
645
824
|
case 7:
|
|
825
|
+
if (tag != 56) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
646
828
|
message.needImage = reader.bool();
|
|
647
|
-
|
|
648
|
-
default:
|
|
649
|
-
reader.skipType(tag & 7);
|
|
650
|
-
break;
|
|
829
|
+
continue;
|
|
651
830
|
}
|
|
831
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
reader.skipType(tag & 7);
|
|
652
835
|
}
|
|
653
836
|
return message;
|
|
654
837
|
},
|
|
@@ -674,6 +857,9 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
674
857
|
message.needImage !== undefined && (obj.needImage = message.needImage);
|
|
675
858
|
return obj;
|
|
676
859
|
},
|
|
860
|
+
create(base) {
|
|
861
|
+
return exports.QueryAppStorageUsageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
862
|
+
},
|
|
677
863
|
fromPartial(object) {
|
|
678
864
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
679
865
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
@@ -713,37 +899,56 @@ exports.AppStorageUsage = {
|
|
|
713
899
|
return writer;
|
|
714
900
|
},
|
|
715
901
|
decode(input, length) {
|
|
716
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
902
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
717
903
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
718
904
|
const message = createBaseAppStorageUsage();
|
|
719
905
|
while (reader.pos < end) {
|
|
720
906
|
const tag = reader.uint32();
|
|
721
907
|
switch (tag >>> 3) {
|
|
722
908
|
case 1:
|
|
909
|
+
if (tag != 8) {
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
723
912
|
message.pkg = longToNumber(reader.uint64());
|
|
724
|
-
|
|
913
|
+
continue;
|
|
725
914
|
case 2:
|
|
915
|
+
if (tag != 16) {
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
726
918
|
message.data = longToNumber(reader.uint64());
|
|
727
|
-
|
|
919
|
+
continue;
|
|
728
920
|
case 3:
|
|
921
|
+
if (tag != 24) {
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
729
924
|
message.cache = longToNumber(reader.uint64());
|
|
730
|
-
|
|
925
|
+
continue;
|
|
731
926
|
case 4:
|
|
927
|
+
if (tag != 32) {
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
732
930
|
message.tmp = longToNumber(reader.uint64());
|
|
733
|
-
|
|
931
|
+
continue;
|
|
734
932
|
case 5:
|
|
933
|
+
if (tag != 42) {
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
735
936
|
const entry5 = exports.AppStorageUsage_UserdataEntry.decode(reader, reader.uint32());
|
|
736
937
|
if (entry5.value !== undefined) {
|
|
737
938
|
message.userdata[entry5.key] = entry5.value;
|
|
738
939
|
}
|
|
739
|
-
|
|
940
|
+
continue;
|
|
740
941
|
case 6:
|
|
942
|
+
if (tag != 48) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
741
945
|
message.image = longToNumber(reader.uint64());
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
946
|
+
continue;
|
|
947
|
+
}
|
|
948
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
949
|
+
break;
|
|
746
950
|
}
|
|
951
|
+
reader.skipType(tag & 7);
|
|
747
952
|
}
|
|
748
953
|
return message;
|
|
749
954
|
},
|
|
@@ -777,6 +982,9 @@ exports.AppStorageUsage = {
|
|
|
777
982
|
message.image !== undefined && (obj.image = Math.round(message.image));
|
|
778
983
|
return obj;
|
|
779
984
|
},
|
|
985
|
+
create(base) {
|
|
986
|
+
return exports.AppStorageUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
987
|
+
},
|
|
780
988
|
fromPartial(object) {
|
|
781
989
|
var _a, _b, _c, _d, _e, _f;
|
|
782
990
|
const message = createBaseAppStorageUsage();
|
|
@@ -808,22 +1016,29 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
808
1016
|
return writer;
|
|
809
1017
|
},
|
|
810
1018
|
decode(input, length) {
|
|
811
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1019
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
812
1020
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
813
1021
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
814
1022
|
while (reader.pos < end) {
|
|
815
1023
|
const tag = reader.uint32();
|
|
816
1024
|
switch (tag >>> 3) {
|
|
817
1025
|
case 1:
|
|
1026
|
+
if (tag != 10) {
|
|
1027
|
+
break;
|
|
1028
|
+
}
|
|
818
1029
|
message.key = reader.string();
|
|
819
|
-
|
|
1030
|
+
continue;
|
|
820
1031
|
case 2:
|
|
1032
|
+
if (tag != 16) {
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
821
1035
|
message.value = longToNumber(reader.uint64());
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
1036
|
+
continue;
|
|
1037
|
+
}
|
|
1038
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1039
|
+
break;
|
|
826
1040
|
}
|
|
1041
|
+
reader.skipType(tag & 7);
|
|
827
1042
|
}
|
|
828
1043
|
return message;
|
|
829
1044
|
},
|
|
@@ -836,6 +1051,9 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
836
1051
|
message.value !== undefined && (obj.value = Math.round(message.value));
|
|
837
1052
|
return obj;
|
|
838
1053
|
},
|
|
1054
|
+
create(base) {
|
|
1055
|
+
return exports.AppStorageUsage_UserdataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1056
|
+
},
|
|
839
1057
|
fromPartial(object) {
|
|
840
1058
|
var _a, _b;
|
|
841
1059
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
@@ -858,22 +1076,29 @@ exports.UserPermission = {
|
|
|
858
1076
|
return writer;
|
|
859
1077
|
},
|
|
860
1078
|
decode(input, length) {
|
|
861
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1079
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
862
1080
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
863
1081
|
const message = createBaseUserPermission();
|
|
864
1082
|
while (reader.pos < end) {
|
|
865
1083
|
const tag = reader.uint32();
|
|
866
1084
|
switch (tag >>> 3) {
|
|
867
1085
|
case 1:
|
|
1086
|
+
if (tag != 10) {
|
|
1087
|
+
break;
|
|
1088
|
+
}
|
|
868
1089
|
message.uid = reader.string();
|
|
869
|
-
|
|
1090
|
+
continue;
|
|
870
1091
|
case 2:
|
|
1092
|
+
if (tag != 16) {
|
|
1093
|
+
break;
|
|
1094
|
+
}
|
|
871
1095
|
message.allowInstallApp = reader.bool();
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1096
|
+
continue;
|
|
1097
|
+
}
|
|
1098
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1099
|
+
break;
|
|
876
1100
|
}
|
|
1101
|
+
reader.skipType(tag & 7);
|
|
877
1102
|
}
|
|
878
1103
|
return message;
|
|
879
1104
|
},
|
|
@@ -889,6 +1114,9 @@ exports.UserPermission = {
|
|
|
889
1114
|
message.allowInstallApp !== undefined && (obj.allowInstallApp = message.allowInstallApp);
|
|
890
1115
|
return obj;
|
|
891
1116
|
},
|
|
1117
|
+
create(base) {
|
|
1118
|
+
return exports.UserPermission.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1119
|
+
},
|
|
892
1120
|
fromPartial(object) {
|
|
893
1121
|
var _a, _b;
|
|
894
1122
|
const message = createBaseUserPermission();
|
|
@@ -908,19 +1136,23 @@ exports.GetUserPermissionsRequest = {
|
|
|
908
1136
|
return writer;
|
|
909
1137
|
},
|
|
910
1138
|
decode(input, length) {
|
|
911
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1139
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
912
1140
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
913
1141
|
const message = createBaseGetUserPermissionsRequest();
|
|
914
1142
|
while (reader.pos < end) {
|
|
915
1143
|
const tag = reader.uint32();
|
|
916
1144
|
switch (tag >>> 3) {
|
|
917
1145
|
case 1:
|
|
1146
|
+
if (tag != 10) {
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
918
1149
|
message.uid = reader.string();
|
|
919
|
-
|
|
920
|
-
default:
|
|
921
|
-
reader.skipType(tag & 7);
|
|
922
|
-
break;
|
|
1150
|
+
continue;
|
|
923
1151
|
}
|
|
1152
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
reader.skipType(tag & 7);
|
|
924
1156
|
}
|
|
925
1157
|
return message;
|
|
926
1158
|
},
|
|
@@ -932,6 +1164,9 @@ exports.GetUserPermissionsRequest = {
|
|
|
932
1164
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
933
1165
|
return obj;
|
|
934
1166
|
},
|
|
1167
|
+
create(base) {
|
|
1168
|
+
return exports.GetUserPermissionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1169
|
+
},
|
|
935
1170
|
fromPartial(object) {
|
|
936
1171
|
var _a;
|
|
937
1172
|
const message = createBaseGetUserPermissionsRequest();
|
|
@@ -950,19 +1185,23 @@ exports.Appid = {
|
|
|
950
1185
|
return writer;
|
|
951
1186
|
},
|
|
952
1187
|
decode(input, length) {
|
|
953
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1188
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
954
1189
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
955
1190
|
const message = createBaseAppid();
|
|
956
1191
|
while (reader.pos < end) {
|
|
957
1192
|
const tag = reader.uint32();
|
|
958
1193
|
switch (tag >>> 3) {
|
|
959
1194
|
case 1:
|
|
1195
|
+
if (tag != 10) {
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
960
1198
|
message.appid = reader.string();
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1199
|
+
continue;
|
|
1200
|
+
}
|
|
1201
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1202
|
+
break;
|
|
965
1203
|
}
|
|
1204
|
+
reader.skipType(tag & 7);
|
|
966
1205
|
}
|
|
967
1206
|
return message;
|
|
968
1207
|
},
|
|
@@ -974,6 +1213,9 @@ exports.Appid = {
|
|
|
974
1213
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
975
1214
|
return obj;
|
|
976
1215
|
},
|
|
1216
|
+
create(base) {
|
|
1217
|
+
return exports.Appid.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1218
|
+
},
|
|
977
1219
|
fromPartial(object) {
|
|
978
1220
|
var _a;
|
|
979
1221
|
const message = createBaseAppid();
|
|
@@ -998,25 +1240,35 @@ exports.GetActionURLRequest = {
|
|
|
998
1240
|
return writer;
|
|
999
1241
|
},
|
|
1000
1242
|
decode(input, length) {
|
|
1001
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1243
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1002
1244
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1003
1245
|
const message = createBaseGetActionURLRequest();
|
|
1004
1246
|
while (reader.pos < end) {
|
|
1005
1247
|
const tag = reader.uint32();
|
|
1006
1248
|
switch (tag >>> 3) {
|
|
1007
1249
|
case 1:
|
|
1250
|
+
if (tag != 10) {
|
|
1251
|
+
break;
|
|
1252
|
+
}
|
|
1008
1253
|
message.path = reader.string();
|
|
1009
|
-
|
|
1254
|
+
continue;
|
|
1010
1255
|
case 2:
|
|
1256
|
+
if (tag != 18) {
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1011
1259
|
message.appid = reader.string();
|
|
1012
|
-
|
|
1260
|
+
continue;
|
|
1013
1261
|
case 3:
|
|
1262
|
+
if (tag != 24) {
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1014
1265
|
message.action = reader.int32();
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1269
|
+
break;
|
|
1019
1270
|
}
|
|
1271
|
+
reader.skipType(tag & 7);
|
|
1020
1272
|
}
|
|
1021
1273
|
return message;
|
|
1022
1274
|
},
|
|
@@ -1034,6 +1286,9 @@ exports.GetActionURLRequest = {
|
|
|
1034
1286
|
message.action !== undefined && (obj.action = actionToJSON(message.action));
|
|
1035
1287
|
return obj;
|
|
1036
1288
|
},
|
|
1289
|
+
create(base) {
|
|
1290
|
+
return exports.GetActionURLRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1291
|
+
},
|
|
1037
1292
|
fromPartial(object) {
|
|
1038
1293
|
var _a, _b, _c;
|
|
1039
1294
|
const message = createBaseGetActionURLRequest();
|
|
@@ -1054,19 +1309,23 @@ exports.GetActionURLResponse = {
|
|
|
1054
1309
|
return writer;
|
|
1055
1310
|
},
|
|
1056
1311
|
decode(input, length) {
|
|
1057
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1312
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1058
1313
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1059
1314
|
const message = createBaseGetActionURLResponse();
|
|
1060
1315
|
while (reader.pos < end) {
|
|
1061
1316
|
const tag = reader.uint32();
|
|
1062
1317
|
switch (tag >>> 3) {
|
|
1063
1318
|
case 1:
|
|
1319
|
+
if (tag != 10) {
|
|
1320
|
+
break;
|
|
1321
|
+
}
|
|
1064
1322
|
message.url = reader.string();
|
|
1065
|
-
|
|
1066
|
-
default:
|
|
1067
|
-
reader.skipType(tag & 7);
|
|
1068
|
-
break;
|
|
1323
|
+
continue;
|
|
1069
1324
|
}
|
|
1325
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1326
|
+
break;
|
|
1327
|
+
}
|
|
1328
|
+
reader.skipType(tag & 7);
|
|
1070
1329
|
}
|
|
1071
1330
|
return message;
|
|
1072
1331
|
},
|
|
@@ -1078,6 +1337,9 @@ exports.GetActionURLResponse = {
|
|
|
1078
1337
|
message.url !== undefined && (obj.url = message.url);
|
|
1079
1338
|
return obj;
|
|
1080
1339
|
},
|
|
1340
|
+
create(base) {
|
|
1341
|
+
return exports.GetActionURLResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1342
|
+
},
|
|
1081
1343
|
fromPartial(object) {
|
|
1082
1344
|
var _a;
|
|
1083
1345
|
const message = createBaseGetActionURLResponse();
|
|
@@ -1096,19 +1358,23 @@ exports.ListFileHandlerRequest = {
|
|
|
1096
1358
|
return writer;
|
|
1097
1359
|
},
|
|
1098
1360
|
decode(input, length) {
|
|
1099
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1361
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1100
1362
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1101
1363
|
const message = createBaseListFileHandlerRequest();
|
|
1102
1364
|
while (reader.pos < end) {
|
|
1103
1365
|
const tag = reader.uint32();
|
|
1104
1366
|
switch (tag >>> 3) {
|
|
1105
1367
|
case 1:
|
|
1368
|
+
if (tag != 10) {
|
|
1369
|
+
break;
|
|
1370
|
+
}
|
|
1106
1371
|
message.mimetype = reader.string();
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1372
|
+
continue;
|
|
1373
|
+
}
|
|
1374
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1375
|
+
break;
|
|
1111
1376
|
}
|
|
1377
|
+
reader.skipType(tag & 7);
|
|
1112
1378
|
}
|
|
1113
1379
|
return message;
|
|
1114
1380
|
},
|
|
@@ -1120,6 +1386,9 @@ exports.ListFileHandlerRequest = {
|
|
|
1120
1386
|
message.mimetype !== undefined && (obj.mimetype = message.mimetype);
|
|
1121
1387
|
return obj;
|
|
1122
1388
|
},
|
|
1389
|
+
create(base) {
|
|
1390
|
+
return exports.ListFileHandlerRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1391
|
+
},
|
|
1123
1392
|
fromPartial(object) {
|
|
1124
1393
|
var _a;
|
|
1125
1394
|
const message = createBaseListFileHandlerRequest();
|
|
@@ -1144,25 +1413,35 @@ exports.FileHandlerInfo = {
|
|
|
1144
1413
|
return writer;
|
|
1145
1414
|
},
|
|
1146
1415
|
decode(input, length) {
|
|
1147
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1416
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1148
1417
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1149
1418
|
const message = createBaseFileHandlerInfo();
|
|
1150
1419
|
while (reader.pos < end) {
|
|
1151
1420
|
const tag = reader.uint32();
|
|
1152
1421
|
switch (tag >>> 3) {
|
|
1153
1422
|
case 1:
|
|
1423
|
+
if (tag != 10) {
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1154
1426
|
message.appid = reader.string();
|
|
1155
|
-
|
|
1427
|
+
continue;
|
|
1156
1428
|
case 2:
|
|
1429
|
+
if (tag != 18) {
|
|
1430
|
+
break;
|
|
1431
|
+
}
|
|
1157
1432
|
message.title = reader.string();
|
|
1158
|
-
|
|
1433
|
+
continue;
|
|
1159
1434
|
case 3:
|
|
1435
|
+
if (tag != 26) {
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1160
1438
|
message.icon = reader.string();
|
|
1161
|
-
|
|
1162
|
-
default:
|
|
1163
|
-
reader.skipType(tag & 7);
|
|
1164
|
-
break;
|
|
1439
|
+
continue;
|
|
1165
1440
|
}
|
|
1441
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1442
|
+
break;
|
|
1443
|
+
}
|
|
1444
|
+
reader.skipType(tag & 7);
|
|
1166
1445
|
}
|
|
1167
1446
|
return message;
|
|
1168
1447
|
},
|
|
@@ -1180,6 +1459,9 @@ exports.FileHandlerInfo = {
|
|
|
1180
1459
|
message.icon !== undefined && (obj.icon = message.icon);
|
|
1181
1460
|
return obj;
|
|
1182
1461
|
},
|
|
1462
|
+
create(base) {
|
|
1463
|
+
return exports.FileHandlerInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1464
|
+
},
|
|
1183
1465
|
fromPartial(object) {
|
|
1184
1466
|
var _a, _b, _c;
|
|
1185
1467
|
const message = createBaseFileHandlerInfo();
|
|
@@ -1200,19 +1482,23 @@ exports.ListFileHandlerResponse = {
|
|
|
1200
1482
|
return writer;
|
|
1201
1483
|
},
|
|
1202
1484
|
decode(input, length) {
|
|
1203
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1485
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1204
1486
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1205
1487
|
const message = createBaseListFileHandlerResponse();
|
|
1206
1488
|
while (reader.pos < end) {
|
|
1207
1489
|
const tag = reader.uint32();
|
|
1208
1490
|
switch (tag >>> 3) {
|
|
1209
1491
|
case 1:
|
|
1492
|
+
if (tag != 10) {
|
|
1493
|
+
break;
|
|
1494
|
+
}
|
|
1210
1495
|
message.infoList.push(exports.FileHandlerInfo.decode(reader, reader.uint32()));
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1496
|
+
continue;
|
|
1497
|
+
}
|
|
1498
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1499
|
+
break;
|
|
1215
1500
|
}
|
|
1501
|
+
reader.skipType(tag & 7);
|
|
1216
1502
|
}
|
|
1217
1503
|
return message;
|
|
1218
1504
|
},
|
|
@@ -1231,6 +1517,9 @@ exports.ListFileHandlerResponse = {
|
|
|
1231
1517
|
}
|
|
1232
1518
|
return obj;
|
|
1233
1519
|
},
|
|
1520
|
+
create(base) {
|
|
1521
|
+
return exports.ListFileHandlerResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1522
|
+
},
|
|
1234
1523
|
fromPartial(object) {
|
|
1235
1524
|
var _a;
|
|
1236
1525
|
const message = createBaseListFileHandlerResponse();
|
|
@@ -1252,22 +1541,29 @@ exports.AppInstance = {
|
|
|
1252
1541
|
return writer;
|
|
1253
1542
|
},
|
|
1254
1543
|
decode(input, length) {
|
|
1255
|
-
const reader = input instanceof minimal_1.default.Reader ? input :
|
|
1544
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1256
1545
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1257
1546
|
const message = createBaseAppInstance();
|
|
1258
1547
|
while (reader.pos < end) {
|
|
1259
1548
|
const tag = reader.uint32();
|
|
1260
1549
|
switch (tag >>> 3) {
|
|
1261
1550
|
case 1:
|
|
1551
|
+
if (tag != 10) {
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1262
1554
|
message.appid = reader.string();
|
|
1263
|
-
|
|
1555
|
+
continue;
|
|
1264
1556
|
case 2:
|
|
1557
|
+
if (tag != 18) {
|
|
1558
|
+
break;
|
|
1559
|
+
}
|
|
1265
1560
|
message.uid = reader.string();
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1561
|
+
continue;
|
|
1562
|
+
}
|
|
1563
|
+
if ((tag & 7) == 4 || tag == 0) {
|
|
1564
|
+
break;
|
|
1270
1565
|
}
|
|
1566
|
+
reader.skipType(tag & 7);
|
|
1271
1567
|
}
|
|
1272
1568
|
return message;
|
|
1273
1569
|
},
|
|
@@ -1280,6 +1576,9 @@ exports.AppInstance = {
|
|
|
1280
1576
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1281
1577
|
return obj;
|
|
1282
1578
|
},
|
|
1579
|
+
create(base) {
|
|
1580
|
+
return exports.AppInstance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1581
|
+
},
|
|
1283
1582
|
fromPartial(object) {
|
|
1284
1583
|
var _a, _b;
|
|
1285
1584
|
const message = createBaseAppInstance();
|
|
@@ -1292,6 +1591,7 @@ class PackageManagerClientImpl {
|
|
|
1292
1591
|
constructor(rpc) {
|
|
1293
1592
|
this.rpc = rpc;
|
|
1294
1593
|
this.Install = this.Install.bind(this);
|
|
1594
|
+
this.Install2 = this.Install2.bind(this);
|
|
1295
1595
|
this.Uninstall = this.Uninstall.bind(this);
|
|
1296
1596
|
this.Pause = this.Pause.bind(this);
|
|
1297
1597
|
this.Resume = this.Resume.bind(this);
|
|
@@ -1307,6 +1607,9 @@ class PackageManagerClientImpl {
|
|
|
1307
1607
|
Install(request, metadata) {
|
|
1308
1608
|
return this.rpc.unary(exports.PackageManagerInstallDesc, exports.InstallRequest.fromPartial(request), metadata);
|
|
1309
1609
|
}
|
|
1610
|
+
Install2(request, metadata) {
|
|
1611
|
+
throw new Error("ts-proto does not yet support client streaming!");
|
|
1612
|
+
}
|
|
1310
1613
|
Uninstall(request, metadata) {
|
|
1311
1614
|
return this.rpc.unary(exports.PackageManagerUninstallDesc, exports.UninstallRequest.fromPartial(request), metadata);
|
|
1312
1615
|
}
|
|
@@ -1355,8 +1658,9 @@ exports.PackageManagerInstallDesc = {
|
|
|
1355
1658
|
},
|
|
1356
1659
|
responseType: {
|
|
1357
1660
|
deserializeBinary(data) {
|
|
1358
|
-
|
|
1359
|
-
|
|
1661
|
+
const value = empty_1.Empty.decode(data);
|
|
1662
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1663
|
+
return value;
|
|
1360
1664
|
} });
|
|
1361
1665
|
},
|
|
1362
1666
|
},
|
|
@@ -1373,8 +1677,9 @@ exports.PackageManagerUninstallDesc = {
|
|
|
1373
1677
|
},
|
|
1374
1678
|
responseType: {
|
|
1375
1679
|
deserializeBinary(data) {
|
|
1376
|
-
|
|
1377
|
-
|
|
1680
|
+
const value = empty_1.Empty.decode(data);
|
|
1681
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1682
|
+
return value;
|
|
1378
1683
|
} });
|
|
1379
1684
|
},
|
|
1380
1685
|
},
|
|
@@ -1391,8 +1696,9 @@ exports.PackageManagerPauseDesc = {
|
|
|
1391
1696
|
},
|
|
1392
1697
|
responseType: {
|
|
1393
1698
|
deserializeBinary(data) {
|
|
1394
|
-
|
|
1395
|
-
|
|
1699
|
+
const value = empty_1.Empty.decode(data);
|
|
1700
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1701
|
+
return value;
|
|
1396
1702
|
} });
|
|
1397
1703
|
},
|
|
1398
1704
|
},
|
|
@@ -1409,8 +1715,9 @@ exports.PackageManagerResumeDesc = {
|
|
|
1409
1715
|
},
|
|
1410
1716
|
responseType: {
|
|
1411
1717
|
deserializeBinary(data) {
|
|
1412
|
-
|
|
1413
|
-
|
|
1718
|
+
const value = empty_1.Empty.decode(data);
|
|
1719
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1720
|
+
return value;
|
|
1414
1721
|
} });
|
|
1415
1722
|
},
|
|
1416
1723
|
},
|
|
@@ -1427,8 +1734,9 @@ exports.PackageManagerClearCacheDesc = {
|
|
|
1427
1734
|
},
|
|
1428
1735
|
responseType: {
|
|
1429
1736
|
deserializeBinary(data) {
|
|
1430
|
-
|
|
1431
|
-
|
|
1737
|
+
const value = empty_1.Empty.decode(data);
|
|
1738
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1739
|
+
return value;
|
|
1432
1740
|
} });
|
|
1433
1741
|
},
|
|
1434
1742
|
},
|
|
@@ -1445,8 +1753,9 @@ exports.PackageManagerQueryApplicationDesc = {
|
|
|
1445
1753
|
},
|
|
1446
1754
|
responseType: {
|
|
1447
1755
|
deserializeBinary(data) {
|
|
1448
|
-
|
|
1449
|
-
|
|
1756
|
+
const value = exports.QueryApplicationResponse.decode(data);
|
|
1757
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1758
|
+
return value;
|
|
1450
1759
|
} });
|
|
1451
1760
|
},
|
|
1452
1761
|
},
|
|
@@ -1463,8 +1772,9 @@ exports.PackageManagerQueryAppStorageUsageDesc = {
|
|
|
1463
1772
|
},
|
|
1464
1773
|
responseType: {
|
|
1465
1774
|
deserializeBinary(data) {
|
|
1466
|
-
|
|
1467
|
-
|
|
1775
|
+
const value = exports.AppStorageUsage.decode(data);
|
|
1776
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1777
|
+
return value;
|
|
1468
1778
|
} });
|
|
1469
1779
|
},
|
|
1470
1780
|
},
|
|
@@ -1481,8 +1791,9 @@ exports.PackageManagerSetUserPermissionsDesc = {
|
|
|
1481
1791
|
},
|
|
1482
1792
|
responseType: {
|
|
1483
1793
|
deserializeBinary(data) {
|
|
1484
|
-
|
|
1485
|
-
|
|
1794
|
+
const value = empty_1.Empty.decode(data);
|
|
1795
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1796
|
+
return value;
|
|
1486
1797
|
} });
|
|
1487
1798
|
},
|
|
1488
1799
|
},
|
|
@@ -1499,8 +1810,9 @@ exports.PackageManagerGetUserPermissionsDesc = {
|
|
|
1499
1810
|
},
|
|
1500
1811
|
responseType: {
|
|
1501
1812
|
deserializeBinary(data) {
|
|
1502
|
-
|
|
1503
|
-
|
|
1813
|
+
const value = exports.UserPermission.decode(data);
|
|
1814
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1815
|
+
return value;
|
|
1504
1816
|
} });
|
|
1505
1817
|
},
|
|
1506
1818
|
},
|
|
@@ -1517,8 +1829,9 @@ exports.PackageManagerPauseAppDownloadDesc = {
|
|
|
1517
1829
|
},
|
|
1518
1830
|
responseType: {
|
|
1519
1831
|
deserializeBinary(data) {
|
|
1520
|
-
|
|
1521
|
-
|
|
1832
|
+
const value = empty_1.Empty.decode(data);
|
|
1833
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1834
|
+
return value;
|
|
1522
1835
|
} });
|
|
1523
1836
|
},
|
|
1524
1837
|
},
|
|
@@ -1535,8 +1848,9 @@ exports.PackageManagerGetActionURLDesc = {
|
|
|
1535
1848
|
},
|
|
1536
1849
|
responseType: {
|
|
1537
1850
|
deserializeBinary(data) {
|
|
1538
|
-
|
|
1539
|
-
|
|
1851
|
+
const value = exports.GetActionURLResponse.decode(data);
|
|
1852
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1853
|
+
return value;
|
|
1540
1854
|
} });
|
|
1541
1855
|
},
|
|
1542
1856
|
},
|
|
@@ -1553,8 +1867,9 @@ exports.PackageManagerListFileHandlerDesc = {
|
|
|
1553
1867
|
},
|
|
1554
1868
|
responseType: {
|
|
1555
1869
|
deserializeBinary(data) {
|
|
1556
|
-
|
|
1557
|
-
|
|
1870
|
+
const value = exports.ListFileHandlerResponse.decode(data);
|
|
1871
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1872
|
+
return value;
|
|
1558
1873
|
} });
|
|
1559
1874
|
},
|
|
1560
1875
|
},
|
|
@@ -1579,7 +1894,7 @@ class GrpcWebImpl {
|
|
|
1579
1894
|
debug: this.options.debug,
|
|
1580
1895
|
onEnd: function (response) {
|
|
1581
1896
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1582
|
-
resolve(response.message);
|
|
1897
|
+
resolve(response.message.toObject());
|
|
1583
1898
|
}
|
|
1584
1899
|
else {
|
|
1585
1900
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1591,7 +1906,7 @@ class GrpcWebImpl {
|
|
|
1591
1906
|
}
|
|
1592
1907
|
}
|
|
1593
1908
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1594
|
-
var
|
|
1909
|
+
var tsProtoGlobalThis = (() => {
|
|
1595
1910
|
if (typeof globalThis !== "undefined") {
|
|
1596
1911
|
return globalThis;
|
|
1597
1912
|
}
|
|
@@ -1606,9 +1921,34 @@ var globalThis = (() => {
|
|
|
1606
1921
|
}
|
|
1607
1922
|
throw "Unable to locate global object";
|
|
1608
1923
|
})();
|
|
1924
|
+
function bytesFromBase64(b64) {
|
|
1925
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1926
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
1927
|
+
}
|
|
1928
|
+
else {
|
|
1929
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
1930
|
+
const arr = new Uint8Array(bin.length);
|
|
1931
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
1932
|
+
arr[i] = bin.charCodeAt(i);
|
|
1933
|
+
}
|
|
1934
|
+
return arr;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
function base64FromBytes(arr) {
|
|
1938
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
1939
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
1940
|
+
}
|
|
1941
|
+
else {
|
|
1942
|
+
const bin = [];
|
|
1943
|
+
arr.forEach((byte) => {
|
|
1944
|
+
bin.push(String.fromCharCode(byte));
|
|
1945
|
+
});
|
|
1946
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1609
1949
|
function longToNumber(long) {
|
|
1610
1950
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1611
|
-
throw new
|
|
1951
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1612
1952
|
}
|
|
1613
1953
|
return long.toNumber();
|
|
1614
1954
|
}
|
|
@@ -1622,7 +1962,7 @@ function isObject(value) {
|
|
|
1622
1962
|
function isSet(value) {
|
|
1623
1963
|
return value !== null && value !== undefined;
|
|
1624
1964
|
}
|
|
1625
|
-
class GrpcWebError extends Error {
|
|
1965
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1626
1966
|
constructor(message, code, metadata) {
|
|
1627
1967
|
super(message);
|
|
1628
1968
|
this.code = code;
|