@lazycatcloud/sdk 0.1.128 → 0.1.130
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/box.d.ts +55 -13
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +46 -47
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +40 -12
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +50 -33
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +103 -16
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +59 -49
- 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 +43 -21
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +660 -91
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +163 -220
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +61 -15
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +55 -41
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/message.d.ts +21 -2
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +18 -25
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +143 -20
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +59 -53
- 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 +52 -39
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +96 -25
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +87 -46
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +102 -20
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +73 -68
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/extentions/safe_app.d.ts +3 -3
- package/dist/extentions/safe_app.d.ts.map +1 -1
- package/dist/extentions/safe_app.js +10 -1
- package/dist/extentions/safe_app.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +54951 -4489
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +265 -414
- 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 +3 -0
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +9 -4
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +14 -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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +22 -9
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +33 -16
- package/dist/lanforward/lanforward.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +36 -13
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +47 -40
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +25 -8
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +29 -12
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +19 -7
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +27 -13
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +69 -19
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +58 -32
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +94 -15
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +206 -27
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +15 -7
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +26 -10
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +60 -17
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +57 -52
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +193 -29
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +122 -172
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +28 -9
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +32 -13
- package/dist/ssdp/ssdp.js.map +1 -1
- package/dist/sys/OS_daemon.d.ts +29 -11
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +37 -20
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +181 -33
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +141 -121
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +48 -13
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +68 -63
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/event.d.ts +92 -20
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +65 -40
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +246 -34
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +125 -102
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +97 -27
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +93 -82
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +138 -17
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +72 -78
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +304 -41
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +121 -95
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +335 -61
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +215 -206
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +106 -19
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +82 -68
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
- package/dist/API.d.ts +0 -24
- package/dist/API.d.ts.map +0 -1
- package/dist/API.js +0 -117
- package/dist/API.js.map +0 -1
- package/dist/google/protobuf/wrappers.d.ts +0 -182
- package/dist/google/protobuf/wrappers.d.ts.map +0 -1
- package/dist/google/protobuf/wrappers.js +0 -458
- package/dist/google/protobuf/wrappers.js.map +0 -1
- package/dist/sys/message.d.ts +0 -186
- package/dist/sys/message.d.ts.map +0 -1
- package/dist/sys/message.js +0 -493
- package/dist/sys/message.js.map +0 -1
- package/dist/sys/settings.d.ts +0 -68
- package/dist/sys/settings.d.ts.map +0 -1
- package/dist/sys/settings.js +0 -183
- package/dist/sys/settings.js.map +0 -1
|
@@ -7,12 +7,12 @@ exports.HPortalSysListUsersDesc = exports.HPortalSysPairDevicesDesc = exports.HP
|
|
|
7
7
|
exports.GrpcWebError = exports.GrpcWebImpl = exports.HPortalSysCheckPasswordDesc = exports.HPortalSysLogoutDesc = exports.HPortalSysGenUserInvitationDesc = exports.HPortalSysForceResetPasswordDesc = exports.HPortalSysCreateUserDesc = exports.HPortalSysDeleteUserDesc = exports.HPortalSysResetPasswordDesc = exports.HPortalSysChangeRoleDesc = exports.HPortalSysQueryRoleDesc = void 0;
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
10
|
-
const empty_1 = require("../../google/protobuf/empty");
|
|
11
10
|
const browser_headers_1 = require("browser-headers");
|
|
11
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
12
|
+
const rxjs_1 = require("rxjs");
|
|
12
13
|
const operators_1 = require("rxjs/operators");
|
|
14
|
+
const empty_1 = require("../../google/protobuf/empty");
|
|
13
15
|
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
14
|
-
const rxjs_1 = require("rxjs");
|
|
15
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
16
16
|
var Role;
|
|
17
17
|
(function (Role) {
|
|
18
18
|
Role[Role["NORMAL"] = 0] = "NORMAL";
|
|
@@ -188,42 +188,23 @@ exports.GenUserInvitationRequest = {
|
|
|
188
188
|
fromJSON(object) {
|
|
189
189
|
return {
|
|
190
190
|
limitUid: isSet(object.limitUid) ? String(object.limitUid) : undefined,
|
|
191
|
-
notAfter: isSet(object.notAfter)
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
limitRole: isSet(object.limitRole)
|
|
198
|
-
? roleFromJSON(object.limitRole)
|
|
199
|
-
: undefined,
|
|
200
|
-
allowInstallApp: isSet(object.allowInstallApp)
|
|
201
|
-
? Boolean(object.allowInstallApp)
|
|
202
|
-
: undefined,
|
|
203
|
-
enableAllowList: isSet(object.enableAllowList)
|
|
204
|
-
? Boolean(object.enableAllowList)
|
|
205
|
-
: undefined,
|
|
206
|
-
appAllowList: Array.isArray(object === null || object === void 0 ? void 0 : object.appAllowList)
|
|
207
|
-
? object.appAllowList.map((e) => String(e))
|
|
208
|
-
: [],
|
|
191
|
+
notAfter: isSet(object.notAfter) ? fromJsonTimestamp(object.notAfter) : undefined,
|
|
192
|
+
limitUsageCount: isSet(object.limitUsageCount) ? Number(object.limitUsageCount) : undefined,
|
|
193
|
+
limitRole: isSet(object.limitRole) ? roleFromJSON(object.limitRole) : undefined,
|
|
194
|
+
allowInstallApp: isSet(object.allowInstallApp) ? Boolean(object.allowInstallApp) : undefined,
|
|
195
|
+
enableAllowList: isSet(object.enableAllowList) ? Boolean(object.enableAllowList) : undefined,
|
|
196
|
+
appAllowList: Array.isArray(object === null || object === void 0 ? void 0 : object.appAllowList) ? object.appAllowList.map((e) => String(e)) : [],
|
|
209
197
|
};
|
|
210
198
|
},
|
|
211
199
|
toJSON(message) {
|
|
212
200
|
const obj = {};
|
|
213
201
|
message.limitUid !== undefined && (obj.limitUid = message.limitUid);
|
|
214
|
-
message.notAfter !== undefined &&
|
|
215
|
-
|
|
216
|
-
message.limitUsageCount !== undefined &&
|
|
217
|
-
(obj.limitUsageCount = Math.round(message.limitUsageCount));
|
|
202
|
+
message.notAfter !== undefined && (obj.notAfter = message.notAfter.toISOString());
|
|
203
|
+
message.limitUsageCount !== undefined && (obj.limitUsageCount = Math.round(message.limitUsageCount));
|
|
218
204
|
message.limitRole !== undefined &&
|
|
219
|
-
(obj.limitRole =
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
: undefined);
|
|
223
|
-
message.allowInstallApp !== undefined &&
|
|
224
|
-
(obj.allowInstallApp = message.allowInstallApp);
|
|
225
|
-
message.enableAllowList !== undefined &&
|
|
226
|
-
(obj.enableAllowList = message.enableAllowList);
|
|
205
|
+
(obj.limitRole = message.limitRole !== undefined ? roleToJSON(message.limitRole) : undefined);
|
|
206
|
+
message.allowInstallApp !== undefined && (obj.allowInstallApp = message.allowInstallApp);
|
|
207
|
+
message.enableAllowList !== undefined && (obj.enableAllowList = message.enableAllowList);
|
|
227
208
|
if (message.appAllowList) {
|
|
228
209
|
obj.appAllowList = message.appAllowList.map((e) => e);
|
|
229
210
|
}
|
|
@@ -232,6 +213,9 @@ exports.GenUserInvitationRequest = {
|
|
|
232
213
|
}
|
|
233
214
|
return obj;
|
|
234
215
|
},
|
|
216
|
+
create(base) {
|
|
217
|
+
return exports.GenUserInvitationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
218
|
+
},
|
|
235
219
|
fromPartial(object) {
|
|
236
220
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
237
221
|
const message = createBaseGenUserInvitationRequest();
|
|
@@ -273,15 +257,16 @@ exports.UserInvitation = {
|
|
|
273
257
|
return message;
|
|
274
258
|
},
|
|
275
259
|
fromJSON(object) {
|
|
276
|
-
return {
|
|
277
|
-
token: isSet(object.token) ? String(object.token) : "",
|
|
278
|
-
};
|
|
260
|
+
return { token: isSet(object.token) ? String(object.token) : "" };
|
|
279
261
|
},
|
|
280
262
|
toJSON(message) {
|
|
281
263
|
const obj = {};
|
|
282
264
|
message.token !== undefined && (obj.token = message.token);
|
|
283
265
|
return obj;
|
|
284
266
|
},
|
|
267
|
+
create(base) {
|
|
268
|
+
return exports.UserInvitation.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
269
|
+
},
|
|
285
270
|
fromPartial(object) {
|
|
286
271
|
var _a;
|
|
287
272
|
const message = createBaseUserInvitation();
|
|
@@ -317,11 +302,7 @@ exports.ListUsersReply = {
|
|
|
317
302
|
return message;
|
|
318
303
|
},
|
|
319
304
|
fromJSON(object) {
|
|
320
|
-
return {
|
|
321
|
-
uids: Array.isArray(object === null || object === void 0 ? void 0 : object.uids)
|
|
322
|
-
? object.uids.map((e) => String(e))
|
|
323
|
-
: [],
|
|
324
|
-
};
|
|
305
|
+
return { uids: Array.isArray(object === null || object === void 0 ? void 0 : object.uids) ? object.uids.map((e) => String(e)) : [] };
|
|
325
306
|
},
|
|
326
307
|
toJSON(message) {
|
|
327
308
|
const obj = {};
|
|
@@ -333,6 +314,9 @@ exports.ListUsersReply = {
|
|
|
333
314
|
}
|
|
334
315
|
return obj;
|
|
335
316
|
},
|
|
317
|
+
create(base) {
|
|
318
|
+
return exports.ListUsersReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
319
|
+
},
|
|
336
320
|
fromPartial(object) {
|
|
337
321
|
var _a;
|
|
338
322
|
const message = createBaseListUsersReply();
|
|
@@ -376,9 +360,7 @@ exports.PairDevicesRequest = {
|
|
|
376
360
|
fromJSON(object) {
|
|
377
361
|
return {
|
|
378
362
|
srcId: isSet(object.srcId) ? String(object.srcId) : "",
|
|
379
|
-
otherIds: Array.isArray(object === null || object === void 0 ? void 0 : object.otherIds)
|
|
380
|
-
? object.otherIds.map((e) => String(e))
|
|
381
|
-
: [],
|
|
363
|
+
otherIds: Array.isArray(object === null || object === void 0 ? void 0 : object.otherIds) ? object.otherIds.map((e) => String(e)) : [],
|
|
382
364
|
};
|
|
383
365
|
},
|
|
384
366
|
toJSON(message) {
|
|
@@ -392,6 +374,9 @@ exports.PairDevicesRequest = {
|
|
|
392
374
|
}
|
|
393
375
|
return obj;
|
|
394
376
|
},
|
|
377
|
+
create(base) {
|
|
378
|
+
return exports.PairDevicesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
379
|
+
},
|
|
395
380
|
fromPartial(object) {
|
|
396
381
|
var _a, _b;
|
|
397
382
|
const message = createBasePairDevicesRequest();
|
|
@@ -445,6 +430,9 @@ exports.AllocVEIPRequest = {
|
|
|
445
430
|
message.subdomain !== undefined && (obj.subdomain = message.subdomain);
|
|
446
431
|
return obj;
|
|
447
432
|
},
|
|
433
|
+
create(base) {
|
|
434
|
+
return exports.AllocVEIPRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
435
|
+
},
|
|
448
436
|
fromPartial(object) {
|
|
449
437
|
var _a, _b;
|
|
450
438
|
const message = createBaseAllocVEIPRequest();
|
|
@@ -481,15 +469,16 @@ exports.AllocVEIPReply = {
|
|
|
481
469
|
return message;
|
|
482
470
|
},
|
|
483
471
|
fromJSON(object) {
|
|
484
|
-
return {
|
|
485
|
-
ip: isSet(object.ip) ? String(object.ip) : "",
|
|
486
|
-
};
|
|
472
|
+
return { ip: isSet(object.ip) ? String(object.ip) : "" };
|
|
487
473
|
},
|
|
488
474
|
toJSON(message) {
|
|
489
475
|
const obj = {};
|
|
490
476
|
message.ip !== undefined && (obj.ip = message.ip);
|
|
491
477
|
return obj;
|
|
492
478
|
},
|
|
479
|
+
create(base) {
|
|
480
|
+
return exports.AllocVEIPReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
481
|
+
},
|
|
493
482
|
fromPartial(object) {
|
|
494
483
|
var _a;
|
|
495
484
|
const message = createBaseAllocVEIPReply();
|
|
@@ -539,10 +528,12 @@ exports.FreeVEIPRequest = {
|
|
|
539
528
|
toJSON(message) {
|
|
540
529
|
const obj = {};
|
|
541
530
|
message.ip !== undefined && (obj.ip = message.ip);
|
|
542
|
-
message.waitSecond !== undefined &&
|
|
543
|
-
(obj.waitSecond = Math.round(message.waitSecond));
|
|
531
|
+
message.waitSecond !== undefined && (obj.waitSecond = Math.round(message.waitSecond));
|
|
544
532
|
return obj;
|
|
545
533
|
},
|
|
534
|
+
create(base) {
|
|
535
|
+
return exports.FreeVEIPRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
536
|
+
},
|
|
546
537
|
fromPartial(object) {
|
|
547
538
|
var _a, _b;
|
|
548
539
|
const message = createBaseFreeVEIPRequest();
|
|
@@ -579,6 +570,9 @@ exports.FreeVEIPReply = {
|
|
|
579
570
|
const obj = {};
|
|
580
571
|
return obj;
|
|
581
572
|
},
|
|
573
|
+
create(base) {
|
|
574
|
+
return exports.FreeVEIPReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
575
|
+
},
|
|
582
576
|
fromPartial(_) {
|
|
583
577
|
const message = createBaseFreeVEIPReply();
|
|
584
578
|
return message;
|
|
@@ -627,19 +621,19 @@ exports.AppCertRequest = {
|
|
|
627
621
|
return {
|
|
628
622
|
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
629
623
|
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
630
|
-
validSeconds: isSet(object.validSeconds)
|
|
631
|
-
? Number(object.validSeconds)
|
|
632
|
-
: 0,
|
|
624
|
+
validSeconds: isSet(object.validSeconds) ? Number(object.validSeconds) : 0,
|
|
633
625
|
};
|
|
634
626
|
},
|
|
635
627
|
toJSON(message) {
|
|
636
628
|
const obj = {};
|
|
637
629
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
638
630
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
639
|
-
message.validSeconds !== undefined &&
|
|
640
|
-
(obj.validSeconds = Math.round(message.validSeconds));
|
|
631
|
+
message.validSeconds !== undefined && (obj.validSeconds = Math.round(message.validSeconds));
|
|
641
632
|
return obj;
|
|
642
633
|
},
|
|
634
|
+
create(base) {
|
|
635
|
+
return exports.AppCertRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
636
|
+
},
|
|
643
637
|
fromPartial(object) {
|
|
644
638
|
var _a, _b, _c;
|
|
645
639
|
const message = createBaseAppCertRequest();
|
|
@@ -702,6 +696,9 @@ exports.AppCertReply = {
|
|
|
702
696
|
message.boxCert !== undefined && (obj.boxCert = message.boxCert);
|
|
703
697
|
return obj;
|
|
704
698
|
},
|
|
699
|
+
create(base) {
|
|
700
|
+
return exports.AppCertReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
701
|
+
},
|
|
705
702
|
fromPartial(object) {
|
|
706
703
|
var _a, _b, _c;
|
|
707
704
|
const message = createBaseAppCertReply();
|
|
@@ -712,13 +709,7 @@ exports.AppCertReply = {
|
|
|
712
709
|
},
|
|
713
710
|
};
|
|
714
711
|
function createBaseAuthToken() {
|
|
715
|
-
return {
|
|
716
|
-
token: "",
|
|
717
|
-
autologinTokenPostUrl: "",
|
|
718
|
-
accessIp: "",
|
|
719
|
-
autologinRedirectUrl: "",
|
|
720
|
-
tokenType: 0,
|
|
721
|
-
};
|
|
712
|
+
return { token: "", autologinTokenPostUrl: "", accessIp: "", autologinRedirectUrl: "", tokenType: 0 };
|
|
722
713
|
}
|
|
723
714
|
exports.AuthToken = {
|
|
724
715
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -771,30 +762,24 @@ exports.AuthToken = {
|
|
|
771
762
|
fromJSON(object) {
|
|
772
763
|
return {
|
|
773
764
|
token: isSet(object.token) ? String(object.token) : "",
|
|
774
|
-
autologinTokenPostUrl: isSet(object.autologinTokenPostUrl)
|
|
775
|
-
? String(object.autologinTokenPostUrl)
|
|
776
|
-
: "",
|
|
765
|
+
autologinTokenPostUrl: isSet(object.autologinTokenPostUrl) ? String(object.autologinTokenPostUrl) : "",
|
|
777
766
|
accessIp: isSet(object.accessIp) ? String(object.accessIp) : "",
|
|
778
|
-
autologinRedirectUrl: isSet(object.autologinRedirectUrl)
|
|
779
|
-
|
|
780
|
-
: "",
|
|
781
|
-
tokenType: isSet(object.tokenType)
|
|
782
|
-
? authToken_TokenTypeFromJSON(object.tokenType)
|
|
783
|
-
: 0,
|
|
767
|
+
autologinRedirectUrl: isSet(object.autologinRedirectUrl) ? String(object.autologinRedirectUrl) : "",
|
|
768
|
+
tokenType: isSet(object.tokenType) ? authToken_TokenTypeFromJSON(object.tokenType) : 0,
|
|
784
769
|
};
|
|
785
770
|
},
|
|
786
771
|
toJSON(message) {
|
|
787
772
|
const obj = {};
|
|
788
773
|
message.token !== undefined && (obj.token = message.token);
|
|
789
|
-
message.autologinTokenPostUrl !== undefined &&
|
|
790
|
-
(obj.autologinTokenPostUrl = message.autologinTokenPostUrl);
|
|
774
|
+
message.autologinTokenPostUrl !== undefined && (obj.autologinTokenPostUrl = message.autologinTokenPostUrl);
|
|
791
775
|
message.accessIp !== undefined && (obj.accessIp = message.accessIp);
|
|
792
|
-
message.autologinRedirectUrl !== undefined &&
|
|
793
|
-
|
|
794
|
-
message.tokenType !== undefined &&
|
|
795
|
-
(obj.tokenType = authToken_TokenTypeToJSON(message.tokenType));
|
|
776
|
+
message.autologinRedirectUrl !== undefined && (obj.autologinRedirectUrl = message.autologinRedirectUrl);
|
|
777
|
+
message.tokenType !== undefined && (obj.tokenType = authToken_TokenTypeToJSON(message.tokenType));
|
|
796
778
|
return obj;
|
|
797
779
|
},
|
|
780
|
+
create(base) {
|
|
781
|
+
return exports.AuthToken.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
782
|
+
},
|
|
798
783
|
fromPartial(object) {
|
|
799
784
|
var _a, _b, _c, _d, _e;
|
|
800
785
|
const message = createBaseAuthToken();
|
|
@@ -807,13 +792,7 @@ exports.AuthToken = {
|
|
|
807
792
|
},
|
|
808
793
|
};
|
|
809
794
|
function createBaseLoginInfo() {
|
|
810
|
-
return {
|
|
811
|
-
uid: "",
|
|
812
|
-
deviceId: "",
|
|
813
|
-
when: undefined,
|
|
814
|
-
autologinTokenRequestContent: "",
|
|
815
|
-
deviceVersion: "",
|
|
816
|
-
};
|
|
795
|
+
return { uid: "", deviceId: "", when: undefined, autologinTokenRequestContent: "", deviceVersion: "" };
|
|
817
796
|
}
|
|
818
797
|
exports.LoginInfo = {
|
|
819
798
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -871,9 +850,7 @@ exports.LoginInfo = {
|
|
|
871
850
|
autologinTokenRequestContent: isSet(object.autologinTokenRequestContent)
|
|
872
851
|
? String(object.autologinTokenRequestContent)
|
|
873
852
|
: "",
|
|
874
|
-
deviceVersion: isSet(object.deviceVersion)
|
|
875
|
-
? String(object.deviceVersion)
|
|
876
|
-
: "",
|
|
853
|
+
deviceVersion: isSet(object.deviceVersion) ? String(object.deviceVersion) : "",
|
|
877
854
|
};
|
|
878
855
|
},
|
|
879
856
|
toJSON(message) {
|
|
@@ -883,18 +860,19 @@ exports.LoginInfo = {
|
|
|
883
860
|
message.when !== undefined && (obj.when = message.when.toISOString());
|
|
884
861
|
message.autologinTokenRequestContent !== undefined &&
|
|
885
862
|
(obj.autologinTokenRequestContent = message.autologinTokenRequestContent);
|
|
886
|
-
message.deviceVersion !== undefined &&
|
|
887
|
-
(obj.deviceVersion = message.deviceVersion);
|
|
863
|
+
message.deviceVersion !== undefined && (obj.deviceVersion = message.deviceVersion);
|
|
888
864
|
return obj;
|
|
889
865
|
},
|
|
866
|
+
create(base) {
|
|
867
|
+
return exports.LoginInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
868
|
+
},
|
|
890
869
|
fromPartial(object) {
|
|
891
870
|
var _a, _b, _c, _d, _e;
|
|
892
871
|
const message = createBaseLoginInfo();
|
|
893
872
|
message.uid = (_a = object.uid) !== null && _a !== void 0 ? _a : "";
|
|
894
873
|
message.deviceId = (_b = object.deviceId) !== null && _b !== void 0 ? _b : "";
|
|
895
874
|
message.when = (_c = object.when) !== null && _c !== void 0 ? _c : undefined;
|
|
896
|
-
message.autologinTokenRequestContent =
|
|
897
|
-
(_d = object.autologinTokenRequestContent) !== null && _d !== void 0 ? _d : "";
|
|
875
|
+
message.autologinTokenRequestContent = (_d = object.autologinTokenRequestContent) !== null && _d !== void 0 ? _d : "";
|
|
898
876
|
message.deviceVersion = (_e = object.deviceVersion) !== null && _e !== void 0 ? _e : "";
|
|
899
877
|
return message;
|
|
900
878
|
},
|
|
@@ -927,15 +905,16 @@ exports.DeviceID = {
|
|
|
927
905
|
return message;
|
|
928
906
|
},
|
|
929
907
|
fromJSON(object) {
|
|
930
|
-
return {
|
|
931
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
932
|
-
};
|
|
908
|
+
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
933
909
|
},
|
|
934
910
|
toJSON(message) {
|
|
935
911
|
const obj = {};
|
|
936
912
|
message.id !== undefined && (obj.id = message.id);
|
|
937
913
|
return obj;
|
|
938
914
|
},
|
|
915
|
+
create(base) {
|
|
916
|
+
return exports.DeviceID.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
917
|
+
},
|
|
939
918
|
fromPartial(object) {
|
|
940
919
|
var _a;
|
|
941
920
|
const message = createBaseDeviceID();
|
|
@@ -944,15 +923,7 @@ exports.DeviceID = {
|
|
|
944
923
|
},
|
|
945
924
|
};
|
|
946
925
|
function createBaseBoxInfo() {
|
|
947
|
-
return {
|
|
948
|
-
originServer: "",
|
|
949
|
-
virtualIp: "",
|
|
950
|
-
boxId: "",
|
|
951
|
-
boxName: "",
|
|
952
|
-
boxDomain: "",
|
|
953
|
-
certReady: false,
|
|
954
|
-
boxCert: "",
|
|
955
|
-
};
|
|
926
|
+
return { originServer: "", virtualIp: "", boxId: "", boxName: "", boxDomain: "", certReady: false, boxCert: "" };
|
|
956
927
|
}
|
|
957
928
|
exports.BoxInfo = {
|
|
958
929
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1016,9 +987,7 @@ exports.BoxInfo = {
|
|
|
1016
987
|
},
|
|
1017
988
|
fromJSON(object) {
|
|
1018
989
|
return {
|
|
1019
|
-
originServer: isSet(object.originServer)
|
|
1020
|
-
? String(object.originServer)
|
|
1021
|
-
: "",
|
|
990
|
+
originServer: isSet(object.originServer) ? String(object.originServer) : "",
|
|
1022
991
|
virtualIp: isSet(object.virtualIp) ? String(object.virtualIp) : "",
|
|
1023
992
|
boxId: isSet(object.boxId) ? String(object.boxId) : "",
|
|
1024
993
|
boxName: isSet(object.boxName) ? String(object.boxName) : "",
|
|
@@ -1029,8 +998,7 @@ exports.BoxInfo = {
|
|
|
1029
998
|
},
|
|
1030
999
|
toJSON(message) {
|
|
1031
1000
|
const obj = {};
|
|
1032
|
-
message.originServer !== undefined &&
|
|
1033
|
-
(obj.originServer = message.originServer);
|
|
1001
|
+
message.originServer !== undefined && (obj.originServer = message.originServer);
|
|
1034
1002
|
message.virtualIp !== undefined && (obj.virtualIp = message.virtualIp);
|
|
1035
1003
|
message.boxId !== undefined && (obj.boxId = message.boxId);
|
|
1036
1004
|
message.boxName !== undefined && (obj.boxName = message.boxName);
|
|
@@ -1039,6 +1007,9 @@ exports.BoxInfo = {
|
|
|
1039
1007
|
message.boxCert !== undefined && (obj.boxCert = message.boxCert);
|
|
1040
1008
|
return obj;
|
|
1041
1009
|
},
|
|
1010
|
+
create(base) {
|
|
1011
|
+
return exports.BoxInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1012
|
+
},
|
|
1042
1013
|
fromPartial(object) {
|
|
1043
1014
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1044
1015
|
const message = createBaseBoxInfo();
|
|
@@ -1080,15 +1051,16 @@ exports.DomainCertRequest = {
|
|
|
1080
1051
|
return message;
|
|
1081
1052
|
},
|
|
1082
1053
|
fromJSON(object) {
|
|
1083
|
-
return {
|
|
1084
|
-
domain: isSet(object.domain) ? String(object.domain) : "",
|
|
1085
|
-
};
|
|
1054
|
+
return { domain: isSet(object.domain) ? String(object.domain) : "" };
|
|
1086
1055
|
},
|
|
1087
1056
|
toJSON(message) {
|
|
1088
1057
|
const obj = {};
|
|
1089
1058
|
message.domain !== undefined && (obj.domain = message.domain);
|
|
1090
1059
|
return obj;
|
|
1091
1060
|
},
|
|
1061
|
+
create(base) {
|
|
1062
|
+
return exports.DomainCertRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1063
|
+
},
|
|
1092
1064
|
fromPartial(object) {
|
|
1093
1065
|
var _a;
|
|
1094
1066
|
const message = createBaseDomainCertRequest();
|
|
@@ -1139,9 +1111,7 @@ exports.DomainCertReply = {
|
|
|
1139
1111
|
return {
|
|
1140
1112
|
cert: isSet(object.cert) ? String(object.cert) : "",
|
|
1141
1113
|
key: isSet(object.key) ? String(object.key) : "",
|
|
1142
|
-
ocsp: isSet(object.ocsp)
|
|
1143
|
-
? bytesFromBase64(object.ocsp)
|
|
1144
|
-
: new Uint8Array(),
|
|
1114
|
+
ocsp: isSet(object.ocsp) ? bytesFromBase64(object.ocsp) : new Uint8Array(),
|
|
1145
1115
|
};
|
|
1146
1116
|
},
|
|
1147
1117
|
toJSON(message) {
|
|
@@ -1152,6 +1122,9 @@ exports.DomainCertReply = {
|
|
|
1152
1122
|
(obj.ocsp = base64FromBytes(message.ocsp !== undefined ? message.ocsp : new Uint8Array()));
|
|
1153
1123
|
return obj;
|
|
1154
1124
|
},
|
|
1125
|
+
create(base) {
|
|
1126
|
+
return exports.DomainCertReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1127
|
+
},
|
|
1155
1128
|
fromPartial(object) {
|
|
1156
1129
|
var _a, _b, _c;
|
|
1157
1130
|
const message = createBaseDomainCertReply();
|
|
@@ -1244,14 +1217,10 @@ exports.Device = {
|
|
|
1244
1217
|
udid: isSet(object.udid) ? String(object.udid) : "",
|
|
1245
1218
|
peerId: isSet(object.peerId) ? String(object.peerId) : "",
|
|
1246
1219
|
isOnline: isSet(object.isOnline) ? Boolean(object.isOnline) : false,
|
|
1247
|
-
deviceApiUrl: isSet(object.deviceApiUrl)
|
|
1248
|
-
? String(object.deviceApiUrl)
|
|
1249
|
-
: "",
|
|
1220
|
+
deviceApiUrl: isSet(object.deviceApiUrl) ? String(object.deviceApiUrl) : "",
|
|
1250
1221
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1251
1222
|
model: isSet(object.model) ? String(object.model) : "",
|
|
1252
|
-
bindingTime: isSet(object.bindingTime)
|
|
1253
|
-
? fromJsonTimestamp(object.bindingTime)
|
|
1254
|
-
: undefined,
|
|
1223
|
+
bindingTime: isSet(object.bindingTime) ? fromJsonTimestamp(object.bindingTime) : undefined,
|
|
1255
1224
|
isMobile: isSet(object.isMobile) ? Boolean(object.isMobile) : false,
|
|
1256
1225
|
};
|
|
1257
1226
|
},
|
|
@@ -1260,15 +1229,16 @@ exports.Device = {
|
|
|
1260
1229
|
message.udid !== undefined && (obj.udid = message.udid);
|
|
1261
1230
|
message.peerId !== undefined && (obj.peerId = message.peerId);
|
|
1262
1231
|
message.isOnline !== undefined && (obj.isOnline = message.isOnline);
|
|
1263
|
-
message.deviceApiUrl !== undefined &&
|
|
1264
|
-
(obj.deviceApiUrl = message.deviceApiUrl);
|
|
1232
|
+
message.deviceApiUrl !== undefined && (obj.deviceApiUrl = message.deviceApiUrl);
|
|
1265
1233
|
message.name !== undefined && (obj.name = message.name);
|
|
1266
1234
|
message.model !== undefined && (obj.model = message.model);
|
|
1267
|
-
message.bindingTime !== undefined &&
|
|
1268
|
-
(obj.bindingTime = message.bindingTime.toISOString());
|
|
1235
|
+
message.bindingTime !== undefined && (obj.bindingTime = message.bindingTime.toISOString());
|
|
1269
1236
|
message.isMobile !== undefined && (obj.isMobile = message.isMobile);
|
|
1270
1237
|
return obj;
|
|
1271
1238
|
},
|
|
1239
|
+
create(base) {
|
|
1240
|
+
return exports.Device.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1241
|
+
},
|
|
1272
1242
|
fromPartial(object) {
|
|
1273
1243
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1274
1244
|
const message = createBaseDevice();
|
|
@@ -1311,15 +1281,16 @@ exports.ListDeviceRequest = {
|
|
|
1311
1281
|
return message;
|
|
1312
1282
|
},
|
|
1313
1283
|
fromJSON(object) {
|
|
1314
|
-
return {
|
|
1315
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1316
|
-
};
|
|
1284
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1317
1285
|
},
|
|
1318
1286
|
toJSON(message) {
|
|
1319
1287
|
const obj = {};
|
|
1320
1288
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1321
1289
|
return obj;
|
|
1322
1290
|
},
|
|
1291
|
+
create(base) {
|
|
1292
|
+
return exports.ListDeviceRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1293
|
+
},
|
|
1323
1294
|
fromPartial(object) {
|
|
1324
1295
|
var _a;
|
|
1325
1296
|
const message = createBaseListDeviceRequest();
|
|
@@ -1355,11 +1326,7 @@ exports.ListDeviceReply = {
|
|
|
1355
1326
|
return message;
|
|
1356
1327
|
},
|
|
1357
1328
|
fromJSON(object) {
|
|
1358
|
-
return {
|
|
1359
|
-
devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices)
|
|
1360
|
-
? object.devices.map((e) => exports.Device.fromJSON(e))
|
|
1361
|
-
: [],
|
|
1362
|
-
};
|
|
1329
|
+
return { devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices) ? object.devices.map((e) => exports.Device.fromJSON(e)) : [] };
|
|
1363
1330
|
},
|
|
1364
1331
|
toJSON(message) {
|
|
1365
1332
|
const obj = {};
|
|
@@ -1371,6 +1338,9 @@ exports.ListDeviceReply = {
|
|
|
1371
1338
|
}
|
|
1372
1339
|
return obj;
|
|
1373
1340
|
},
|
|
1341
|
+
create(base) {
|
|
1342
|
+
return exports.ListDeviceReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1343
|
+
},
|
|
1374
1344
|
fromPartial(object) {
|
|
1375
1345
|
var _a;
|
|
1376
1346
|
const message = createBaseListDeviceReply();
|
|
@@ -1406,15 +1376,16 @@ exports.UserID = {
|
|
|
1406
1376
|
return message;
|
|
1407
1377
|
},
|
|
1408
1378
|
fromJSON(object) {
|
|
1409
|
-
return {
|
|
1410
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1411
|
-
};
|
|
1379
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1412
1380
|
},
|
|
1413
1381
|
toJSON(message) {
|
|
1414
1382
|
const obj = {};
|
|
1415
1383
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1416
1384
|
return obj;
|
|
1417
1385
|
},
|
|
1386
|
+
create(base) {
|
|
1387
|
+
return exports.UserID.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1388
|
+
},
|
|
1418
1389
|
fromPartial(object) {
|
|
1419
1390
|
var _a;
|
|
1420
1391
|
const message = createBaseUserID();
|
|
@@ -1467,6 +1438,9 @@ exports.ChangeRoleReqeust = {
|
|
|
1467
1438
|
message.role !== undefined && (obj.role = roleToJSON(message.role));
|
|
1468
1439
|
return obj;
|
|
1469
1440
|
},
|
|
1441
|
+
create(base) {
|
|
1442
|
+
return exports.ChangeRoleReqeust.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1443
|
+
},
|
|
1470
1444
|
fromPartial(object) {
|
|
1471
1445
|
var _a, _b;
|
|
1472
1446
|
const message = createBaseChangeRoleReqeust();
|
|
@@ -1520,6 +1494,9 @@ exports.QueryRoleReply = {
|
|
|
1520
1494
|
message.role !== undefined && (obj.role = roleToJSON(message.role));
|
|
1521
1495
|
return obj;
|
|
1522
1496
|
},
|
|
1497
|
+
create(base) {
|
|
1498
|
+
return exports.QueryRoleReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1499
|
+
},
|
|
1523
1500
|
fromPartial(object) {
|
|
1524
1501
|
var _a, _b;
|
|
1525
1502
|
const message = createBaseQueryRoleReply();
|
|
@@ -1577,12 +1554,13 @@ exports.ResetPasswordRequest = {
|
|
|
1577
1554
|
toJSON(message) {
|
|
1578
1555
|
const obj = {};
|
|
1579
1556
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1580
|
-
message.oldPassword !== undefined &&
|
|
1581
|
-
|
|
1582
|
-
message.newPassword !== undefined &&
|
|
1583
|
-
(obj.newPassword = message.newPassword);
|
|
1557
|
+
message.oldPassword !== undefined && (obj.oldPassword = message.oldPassword);
|
|
1558
|
+
message.newPassword !== undefined && (obj.newPassword = message.newPassword);
|
|
1584
1559
|
return obj;
|
|
1585
1560
|
},
|
|
1561
|
+
create(base) {
|
|
1562
|
+
return exports.ResetPasswordRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1563
|
+
},
|
|
1586
1564
|
fromPartial(object) {
|
|
1587
1565
|
var _a, _b, _c;
|
|
1588
1566
|
const message = createBaseResetPasswordRequest();
|
|
@@ -1620,15 +1598,16 @@ exports.DeleteUserRequest = {
|
|
|
1620
1598
|
return message;
|
|
1621
1599
|
},
|
|
1622
1600
|
fromJSON(object) {
|
|
1623
|
-
return {
|
|
1624
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1625
|
-
};
|
|
1601
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1626
1602
|
},
|
|
1627
1603
|
toJSON(message) {
|
|
1628
1604
|
const obj = {};
|
|
1629
1605
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1630
1606
|
return obj;
|
|
1631
1607
|
},
|
|
1608
|
+
create(base) {
|
|
1609
|
+
return exports.DeleteUserRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1610
|
+
},
|
|
1632
1611
|
fromPartial(object) {
|
|
1633
1612
|
var _a;
|
|
1634
1613
|
const message = createBaseDeleteUserRequest();
|
|
@@ -1689,6 +1668,9 @@ exports.CreateUserRequest = {
|
|
|
1689
1668
|
message.role !== undefined && (obj.role = roleToJSON(message.role));
|
|
1690
1669
|
return obj;
|
|
1691
1670
|
},
|
|
1671
|
+
create(base) {
|
|
1672
|
+
return exports.CreateUserRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1673
|
+
},
|
|
1692
1674
|
fromPartial(object) {
|
|
1693
1675
|
var _a, _b, _c;
|
|
1694
1676
|
const message = createBaseCreateUserRequest();
|
|
@@ -1740,10 +1722,12 @@ exports.ForceResetPasswordRequest = {
|
|
|
1740
1722
|
toJSON(message) {
|
|
1741
1723
|
const obj = {};
|
|
1742
1724
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1743
|
-
message.newPassword !== undefined &&
|
|
1744
|
-
(obj.newPassword = message.newPassword);
|
|
1725
|
+
message.newPassword !== undefined && (obj.newPassword = message.newPassword);
|
|
1745
1726
|
return obj;
|
|
1746
1727
|
},
|
|
1728
|
+
create(base) {
|
|
1729
|
+
return exports.ForceResetPasswordRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1730
|
+
},
|
|
1747
1731
|
fromPartial(object) {
|
|
1748
1732
|
var _a, _b;
|
|
1749
1733
|
const message = createBaseForceResetPasswordRequest();
|
|
@@ -1795,19 +1779,19 @@ exports.LogoutRequest = {
|
|
|
1795
1779
|
return {
|
|
1796
1780
|
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1797
1781
|
udid: isSet(object.udid) ? String(object.udid) : "",
|
|
1798
|
-
reason: isSet(object.reason)
|
|
1799
|
-
? logoutRequest_ReasonFromJSON(object.reason)
|
|
1800
|
-
: 0,
|
|
1782
|
+
reason: isSet(object.reason) ? logoutRequest_ReasonFromJSON(object.reason) : 0,
|
|
1801
1783
|
};
|
|
1802
1784
|
},
|
|
1803
1785
|
toJSON(message) {
|
|
1804
1786
|
const obj = {};
|
|
1805
1787
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1806
1788
|
message.udid !== undefined && (obj.udid = message.udid);
|
|
1807
|
-
message.reason !== undefined &&
|
|
1808
|
-
(obj.reason = logoutRequest_ReasonToJSON(message.reason));
|
|
1789
|
+
message.reason !== undefined && (obj.reason = logoutRequest_ReasonToJSON(message.reason));
|
|
1809
1790
|
return obj;
|
|
1810
1791
|
},
|
|
1792
|
+
create(base) {
|
|
1793
|
+
return exports.LogoutRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1794
|
+
},
|
|
1811
1795
|
fromPartial(object) {
|
|
1812
1796
|
var _a, _b, _c;
|
|
1813
1797
|
const message = createBaseLogoutRequest();
|
|
@@ -1862,6 +1846,9 @@ exports.CheckPasswordRequest = {
|
|
|
1862
1846
|
message.password !== undefined && (obj.password = message.password);
|
|
1863
1847
|
return obj;
|
|
1864
1848
|
},
|
|
1849
|
+
create(base) {
|
|
1850
|
+
return exports.CheckPasswordRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1851
|
+
},
|
|
1865
1852
|
fromPartial(object) {
|
|
1866
1853
|
var _a, _b;
|
|
1867
1854
|
const message = createBaseCheckPasswordRequest();
|
|
@@ -1956,9 +1943,7 @@ class HPortalSysClientImpl {
|
|
|
1956
1943
|
}
|
|
1957
1944
|
}
|
|
1958
1945
|
exports.HPortalSysClientImpl = HPortalSysClientImpl;
|
|
1959
|
-
exports.HPortalSysDesc = {
|
|
1960
|
-
serviceName: "cloud.lazycat.apis.sys.HPortalSys",
|
|
1961
|
-
};
|
|
1946
|
+
exports.HPortalSysDesc = { serviceName: "cloud.lazycat.apis.sys.HPortalSys" };
|
|
1962
1947
|
exports.HPortalSysQueryLoginDesc = {
|
|
1963
1948
|
methodName: "QueryLogin",
|
|
1964
1949
|
service: exports.HPortalSysDesc,
|
|
@@ -1971,8 +1956,9 @@ exports.HPortalSysQueryLoginDesc = {
|
|
|
1971
1956
|
},
|
|
1972
1957
|
responseType: {
|
|
1973
1958
|
deserializeBinary(data) {
|
|
1974
|
-
|
|
1975
|
-
|
|
1959
|
+
const value = exports.LoginInfo.decode(data);
|
|
1960
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1961
|
+
return value;
|
|
1976
1962
|
} });
|
|
1977
1963
|
},
|
|
1978
1964
|
},
|
|
@@ -1989,8 +1975,9 @@ exports.HPortalSysListDevicesDesc = {
|
|
|
1989
1975
|
},
|
|
1990
1976
|
responseType: {
|
|
1991
1977
|
deserializeBinary(data) {
|
|
1992
|
-
|
|
1993
|
-
|
|
1978
|
+
const value = exports.ListDeviceReply.decode(data);
|
|
1979
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1980
|
+
return value;
|
|
1994
1981
|
} });
|
|
1995
1982
|
},
|
|
1996
1983
|
},
|
|
@@ -2007,8 +1994,9 @@ exports.HPortalSysQueryDeviceByIDDesc = {
|
|
|
2007
1994
|
},
|
|
2008
1995
|
responseType: {
|
|
2009
1996
|
deserializeBinary(data) {
|
|
2010
|
-
|
|
2011
|
-
|
|
1997
|
+
const value = exports.Device.decode(data);
|
|
1998
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
1999
|
+
return value;
|
|
2012
2000
|
} });
|
|
2013
2001
|
},
|
|
2014
2002
|
},
|
|
@@ -2025,8 +2013,9 @@ exports.HPortalSysQueryBoxInfoDesc = {
|
|
|
2025
2013
|
},
|
|
2026
2014
|
responseType: {
|
|
2027
2015
|
deserializeBinary(data) {
|
|
2028
|
-
|
|
2029
|
-
|
|
2016
|
+
const value = exports.BoxInfo.decode(data);
|
|
2017
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2018
|
+
return value;
|
|
2030
2019
|
} });
|
|
2031
2020
|
},
|
|
2032
2021
|
},
|
|
@@ -2043,8 +2032,9 @@ exports.HPortalSysGetDomainCertDesc = {
|
|
|
2043
2032
|
},
|
|
2044
2033
|
responseType: {
|
|
2045
2034
|
deserializeBinary(data) {
|
|
2046
|
-
|
|
2047
|
-
|
|
2035
|
+
const value = exports.DomainCertReply.decode(data);
|
|
2036
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2037
|
+
return value;
|
|
2048
2038
|
} });
|
|
2049
2039
|
},
|
|
2050
2040
|
},
|
|
@@ -2061,8 +2051,9 @@ exports.HPortalSysGetDomainSelfCertDesc = {
|
|
|
2061
2051
|
},
|
|
2062
2052
|
responseType: {
|
|
2063
2053
|
deserializeBinary(data) {
|
|
2064
|
-
|
|
2065
|
-
|
|
2054
|
+
const value = exports.DomainCertReply.decode(data);
|
|
2055
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2056
|
+
return value;
|
|
2066
2057
|
} });
|
|
2067
2058
|
},
|
|
2068
2059
|
},
|
|
@@ -2079,8 +2070,9 @@ exports.HPortalSysGetAppCertDesc = {
|
|
|
2079
2070
|
},
|
|
2080
2071
|
responseType: {
|
|
2081
2072
|
deserializeBinary(data) {
|
|
2082
|
-
|
|
2083
|
-
|
|
2073
|
+
const value = exports.AppCertReply.decode(data);
|
|
2074
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2075
|
+
return value;
|
|
2084
2076
|
} });
|
|
2085
2077
|
},
|
|
2086
2078
|
},
|
|
@@ -2097,8 +2089,9 @@ exports.HPortalSysAllocVirtualExternalIPDesc = {
|
|
|
2097
2089
|
},
|
|
2098
2090
|
responseType: {
|
|
2099
2091
|
deserializeBinary(data) {
|
|
2100
|
-
|
|
2101
|
-
|
|
2092
|
+
const value = exports.AllocVEIPReply.decode(data);
|
|
2093
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2094
|
+
return value;
|
|
2102
2095
|
} });
|
|
2103
2096
|
},
|
|
2104
2097
|
},
|
|
@@ -2115,8 +2108,9 @@ exports.HPortalSysFreeVirtualExternalIPDesc = {
|
|
|
2115
2108
|
},
|
|
2116
2109
|
responseType: {
|
|
2117
2110
|
deserializeBinary(data) {
|
|
2118
|
-
|
|
2119
|
-
|
|
2111
|
+
const value = exports.FreeVEIPReply.decode(data);
|
|
2112
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2113
|
+
return value;
|
|
2120
2114
|
} });
|
|
2121
2115
|
},
|
|
2122
2116
|
},
|
|
@@ -2133,8 +2127,9 @@ exports.HPortalSysPairDevicesDesc = {
|
|
|
2133
2127
|
},
|
|
2134
2128
|
responseType: {
|
|
2135
2129
|
deserializeBinary(data) {
|
|
2136
|
-
|
|
2137
|
-
|
|
2130
|
+
const value = empty_1.Empty.decode(data);
|
|
2131
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2132
|
+
return value;
|
|
2138
2133
|
} });
|
|
2139
2134
|
},
|
|
2140
2135
|
},
|
|
@@ -2151,8 +2146,9 @@ exports.HPortalSysListUsersDesc = {
|
|
|
2151
2146
|
},
|
|
2152
2147
|
responseType: {
|
|
2153
2148
|
deserializeBinary(data) {
|
|
2154
|
-
|
|
2155
|
-
|
|
2149
|
+
const value = exports.ListUsersReply.decode(data);
|
|
2150
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2151
|
+
return value;
|
|
2156
2152
|
} });
|
|
2157
2153
|
},
|
|
2158
2154
|
},
|
|
@@ -2169,8 +2165,9 @@ exports.HPortalSysQueryRoleDesc = {
|
|
|
2169
2165
|
},
|
|
2170
2166
|
responseType: {
|
|
2171
2167
|
deserializeBinary(data) {
|
|
2172
|
-
|
|
2173
|
-
|
|
2168
|
+
const value = exports.QueryRoleReply.decode(data);
|
|
2169
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2170
|
+
return value;
|
|
2174
2171
|
} });
|
|
2175
2172
|
},
|
|
2176
2173
|
},
|
|
@@ -2187,8 +2184,9 @@ exports.HPortalSysChangeRoleDesc = {
|
|
|
2187
2184
|
},
|
|
2188
2185
|
responseType: {
|
|
2189
2186
|
deserializeBinary(data) {
|
|
2190
|
-
|
|
2191
|
-
|
|
2187
|
+
const value = empty_1.Empty.decode(data);
|
|
2188
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2189
|
+
return value;
|
|
2192
2190
|
} });
|
|
2193
2191
|
},
|
|
2194
2192
|
},
|
|
@@ -2205,8 +2203,9 @@ exports.HPortalSysResetPasswordDesc = {
|
|
|
2205
2203
|
},
|
|
2206
2204
|
responseType: {
|
|
2207
2205
|
deserializeBinary(data) {
|
|
2208
|
-
|
|
2209
|
-
|
|
2206
|
+
const value = empty_1.Empty.decode(data);
|
|
2207
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2208
|
+
return value;
|
|
2210
2209
|
} });
|
|
2211
2210
|
},
|
|
2212
2211
|
},
|
|
@@ -2223,8 +2222,9 @@ exports.HPortalSysDeleteUserDesc = {
|
|
|
2223
2222
|
},
|
|
2224
2223
|
responseType: {
|
|
2225
2224
|
deserializeBinary(data) {
|
|
2226
|
-
|
|
2227
|
-
|
|
2225
|
+
const value = empty_1.Empty.decode(data);
|
|
2226
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2227
|
+
return value;
|
|
2228
2228
|
} });
|
|
2229
2229
|
},
|
|
2230
2230
|
},
|
|
@@ -2241,8 +2241,9 @@ exports.HPortalSysCreateUserDesc = {
|
|
|
2241
2241
|
},
|
|
2242
2242
|
responseType: {
|
|
2243
2243
|
deserializeBinary(data) {
|
|
2244
|
-
|
|
2245
|
-
|
|
2244
|
+
const value = empty_1.Empty.decode(data);
|
|
2245
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2246
|
+
return value;
|
|
2246
2247
|
} });
|
|
2247
2248
|
},
|
|
2248
2249
|
},
|
|
@@ -2259,8 +2260,9 @@ exports.HPortalSysForceResetPasswordDesc = {
|
|
|
2259
2260
|
},
|
|
2260
2261
|
responseType: {
|
|
2261
2262
|
deserializeBinary(data) {
|
|
2262
|
-
|
|
2263
|
-
|
|
2263
|
+
const value = empty_1.Empty.decode(data);
|
|
2264
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2265
|
+
return value;
|
|
2264
2266
|
} });
|
|
2265
2267
|
},
|
|
2266
2268
|
},
|
|
@@ -2277,8 +2279,9 @@ exports.HPortalSysGenUserInvitationDesc = {
|
|
|
2277
2279
|
},
|
|
2278
2280
|
responseType: {
|
|
2279
2281
|
deserializeBinary(data) {
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
+
const value = exports.UserInvitation.decode(data);
|
|
2283
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2284
|
+
return value;
|
|
2282
2285
|
} });
|
|
2283
2286
|
},
|
|
2284
2287
|
},
|
|
@@ -2295,8 +2298,9 @@ exports.HPortalSysLogoutDesc = {
|
|
|
2295
2298
|
},
|
|
2296
2299
|
responseType: {
|
|
2297
2300
|
deserializeBinary(data) {
|
|
2298
|
-
|
|
2299
|
-
|
|
2301
|
+
const value = empty_1.Empty.decode(data);
|
|
2302
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2303
|
+
return value;
|
|
2300
2304
|
} });
|
|
2301
2305
|
},
|
|
2302
2306
|
},
|
|
@@ -2313,8 +2317,9 @@ exports.HPortalSysCheckPasswordDesc = {
|
|
|
2313
2317
|
},
|
|
2314
2318
|
responseType: {
|
|
2315
2319
|
deserializeBinary(data) {
|
|
2316
|
-
|
|
2317
|
-
|
|
2320
|
+
const value = empty_1.Empty.decode(data);
|
|
2321
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2322
|
+
return value;
|
|
2318
2323
|
} });
|
|
2319
2324
|
},
|
|
2320
2325
|
},
|
|
@@ -2339,7 +2344,7 @@ class GrpcWebImpl {
|
|
|
2339
2344
|
debug: this.options.debug,
|
|
2340
2345
|
onEnd: function (response) {
|
|
2341
2346
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
2342
|
-
resolve(response.message);
|
|
2347
|
+
resolve(response.message.toObject());
|
|
2343
2348
|
}
|
|
2344
2349
|
else {
|
|
2345
2350
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -2358,7 +2363,7 @@ class GrpcWebImpl {
|
|
|
2358
2363
|
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_a = this.options) === null || _a === void 0 ? void 0 : _a.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
2359
2364
|
: metadata || this.options.metadata;
|
|
2360
2365
|
return new rxjs_1.Observable((observer) => {
|
|
2361
|
-
const upStream = () => {
|
|
2366
|
+
const upStream = (() => {
|
|
2362
2367
|
const client = grpc_web_1.grpc.invoke(methodDesc, {
|
|
2363
2368
|
host: this.host,
|
|
2364
2369
|
request,
|
|
@@ -2382,29 +2387,33 @@ class GrpcWebImpl {
|
|
|
2382
2387
|
},
|
|
2383
2388
|
});
|
|
2384
2389
|
observer.add(() => client.close());
|
|
2385
|
-
};
|
|
2390
|
+
});
|
|
2386
2391
|
upStream();
|
|
2387
2392
|
}).pipe((0, operators_1.share)());
|
|
2388
2393
|
}
|
|
2389
2394
|
}
|
|
2390
2395
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
2391
|
-
var
|
|
2392
|
-
if (typeof globalThis !== "undefined")
|
|
2396
|
+
var tsProtoGlobalThis = (() => {
|
|
2397
|
+
if (typeof globalThis !== "undefined") {
|
|
2393
2398
|
return globalThis;
|
|
2394
|
-
|
|
2399
|
+
}
|
|
2400
|
+
if (typeof self !== "undefined") {
|
|
2395
2401
|
return self;
|
|
2396
|
-
|
|
2402
|
+
}
|
|
2403
|
+
if (typeof window !== "undefined") {
|
|
2397
2404
|
return window;
|
|
2398
|
-
|
|
2405
|
+
}
|
|
2406
|
+
if (typeof global !== "undefined") {
|
|
2399
2407
|
return global;
|
|
2408
|
+
}
|
|
2400
2409
|
throw "Unable to locate global object";
|
|
2401
2410
|
})();
|
|
2402
2411
|
function bytesFromBase64(b64) {
|
|
2403
|
-
if (
|
|
2404
|
-
return Uint8Array.from(
|
|
2412
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
2413
|
+
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
2405
2414
|
}
|
|
2406
2415
|
else {
|
|
2407
|
-
const bin =
|
|
2416
|
+
const bin = tsProtoGlobalThis.atob(b64);
|
|
2408
2417
|
const arr = new Uint8Array(bin.length);
|
|
2409
2418
|
for (let i = 0; i < bin.length; ++i) {
|
|
2410
2419
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -2413,15 +2422,15 @@ function bytesFromBase64(b64) {
|
|
|
2413
2422
|
}
|
|
2414
2423
|
}
|
|
2415
2424
|
function base64FromBytes(arr) {
|
|
2416
|
-
if (
|
|
2417
|
-
return
|
|
2425
|
+
if (tsProtoGlobalThis.Buffer) {
|
|
2426
|
+
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
2418
2427
|
}
|
|
2419
2428
|
else {
|
|
2420
2429
|
const bin = [];
|
|
2421
2430
|
arr.forEach((byte) => {
|
|
2422
2431
|
bin.push(String.fromCharCode(byte));
|
|
2423
2432
|
});
|
|
2424
|
-
return
|
|
2433
|
+
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
2425
2434
|
}
|
|
2426
2435
|
}
|
|
2427
2436
|
function toTimestamp(date) {
|
|
@@ -2448,7 +2457,7 @@ function fromJsonTimestamp(o) {
|
|
|
2448
2457
|
function isSet(value) {
|
|
2449
2458
|
return value !== null && value !== undefined;
|
|
2450
2459
|
}
|
|
2451
|
-
class GrpcWebError extends Error {
|
|
2460
|
+
class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
2452
2461
|
constructor(message, code, metadata) {
|
|
2453
2462
|
super(message);
|
|
2454
2463
|
this.code = code;
|