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