@lazycatcloud/sdk 0.1.66 → 0.1.67
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 +1 -1
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +21 -37
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +2 -2
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +12 -23
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +2 -2
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +18 -41
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +5 -15
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +2 -2
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +81 -190
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +1 -1
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +14 -33
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +1 -1
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +18 -35
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +11 -33
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +2 -2
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +10 -24
- package/dist/common/users.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +0 -1
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +176 -406
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +0 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +9 -6
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +86 -0
- package/dist/lanforward/lanforward.d.ts.map +1 -0
- package/dist/lanforward/lanforward.js +217 -0
- package/dist/lanforward/lanforward.js.map +1 -0
- package/dist/localdevice/clipboard.d.ts +1 -1
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +16 -22
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/device.d.ts +1 -1
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +4 -9
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +1 -1
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +5 -12
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +1 -2
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +5 -14
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +1 -1
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +3 -6
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +5 -17
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +1 -1
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +64 -156
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +94 -0
- package/dist/ssdp/ssdp.d.ts.map +1 -0
- package/dist/ssdp/ssdp.js +246 -0
- package/dist/ssdp/ssdp.js.map +1 -0
- package/dist/sys/OS_snapshot.d.ts +1 -1
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +41 -81
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +1 -1
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +22 -39
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +2 -2
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +32 -65
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +1 -1
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +18 -33
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/network_manager.d.ts +1 -1
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +22 -66
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +1 -1
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +36 -73
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +2 -26
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +59 -257
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +1 -1
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +20 -50
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -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
|
@@ -3,16 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.GrpcWebError = exports.GrpcWebImpl = exports.HPortalSysCheckPasswordDesc = exports.HPortalSysLogoutDesc = exports.HPortalSysGenUserInvitationDesc = exports.HPortalSysForceResetPasswordDesc = exports.HPortalSysCreateUserDesc = exports.HPortalSysDeleteUserDesc = exports.HPortalSysResetPasswordDesc = exports.HPortalSysChangeRoleDesc =
|
|
6
|
+
exports.HPortalSysQueryRoleDesc = exports.HPortalSysListUsersDesc = exports.HPortalSysPairDevicesDesc = exports.HPortalSysFreeVirtualExternalIPDesc = exports.HPortalSysAllocVirtualExternalIPDesc = exports.HPortalSysGetAppCertDesc = exports.HPortalSysGetDomainCertDesc = exports.HPortalSysQueryBoxInfoDesc = exports.HPortalSysQueryDeviceByIDDesc = exports.HPortalSysListDevicesDesc = exports.HPortalSysQueryLoginDesc = exports.HPortalSysDesc = exports.HPortalSysClientImpl = exports.CheckPasswordRequest = exports.LogoutRequest = exports.ForceResetPasswordRequest = exports.CreateUserRequest = exports.DeleteUserRequest = exports.ResetPasswordRequest = exports.QueryRoleReply = exports.ChangeRoleReqeust = exports.UserID = exports.ListDeviceReply = exports.ListDeviceRequest = exports.Device = exports.DomainCertReply = exports.DomainCertRequest = exports.BoxInfo = exports.DeviceID = exports.LoginInfo = exports.AuthToken = exports.AppCertReply = exports.AppCertRequest = exports.FreeVEIPReply = exports.FreeVEIPRequest = exports.AllocVEIPReply = exports.AllocVEIPRequest = exports.PairDevicesRequest = exports.ListUsersReply = exports.UserInvitation = exports.GenUserInvitationRequest = exports.logoutRequest_ReasonToJSON = exports.logoutRequest_ReasonFromJSON = exports.LogoutRequest_Reason = exports.authToken_TokenTypeToJSON = exports.authToken_TokenTypeFromJSON = exports.AuthToken_TokenType = exports.roleToJSON = exports.roleFromJSON = exports.Role = void 0;
|
|
7
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.HPortalSysCheckPasswordDesc = exports.HPortalSysLogoutDesc = exports.HPortalSysGenUserInvitationDesc = exports.HPortalSysForceResetPasswordDesc = exports.HPortalSysCreateUserDesc = exports.HPortalSysDeleteUserDesc = exports.HPortalSysResetPasswordDesc = exports.HPortalSysChangeRoleDesc = 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";
|
|
@@ -81,39 +81,6 @@ function authToken_TokenTypeToJSON(object) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
exports.authToken_TokenTypeToJSON = authToken_TokenTypeToJSON;
|
|
84
|
-
var BoxStatus_Status;
|
|
85
|
-
(function (BoxStatus_Status) {
|
|
86
|
-
BoxStatus_Status[BoxStatus_Status["OK"] = 0] = "OK";
|
|
87
|
-
BoxStatus_Status[BoxStatus_Status["Error"] = 1] = "Error";
|
|
88
|
-
BoxStatus_Status[BoxStatus_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
89
|
-
})(BoxStatus_Status = exports.BoxStatus_Status || (exports.BoxStatus_Status = {}));
|
|
90
|
-
function boxStatus_StatusFromJSON(object) {
|
|
91
|
-
switch (object) {
|
|
92
|
-
case 0:
|
|
93
|
-
case "OK":
|
|
94
|
-
return BoxStatus_Status.OK;
|
|
95
|
-
case 1:
|
|
96
|
-
case "Error":
|
|
97
|
-
return BoxStatus_Status.Error;
|
|
98
|
-
case -1:
|
|
99
|
-
case "UNRECOGNIZED":
|
|
100
|
-
default:
|
|
101
|
-
return BoxStatus_Status.UNRECOGNIZED;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.boxStatus_StatusFromJSON = boxStatus_StatusFromJSON;
|
|
105
|
-
function boxStatus_StatusToJSON(object) {
|
|
106
|
-
switch (object) {
|
|
107
|
-
case BoxStatus_Status.OK:
|
|
108
|
-
return "OK";
|
|
109
|
-
case BoxStatus_Status.Error:
|
|
110
|
-
return "Error";
|
|
111
|
-
case BoxStatus_Status.UNRECOGNIZED:
|
|
112
|
-
default:
|
|
113
|
-
return "UNRECOGNIZED";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
exports.boxStatus_StatusToJSON = boxStatus_StatusToJSON;
|
|
117
84
|
var LogoutRequest_Reason;
|
|
118
85
|
(function (LogoutRequest_Reason) {
|
|
119
86
|
LogoutRequest_Reason[LogoutRequest_Reason["LogoutByDeleting"] = 0] = "LogoutByDeleting";
|
|
@@ -148,12 +115,7 @@ function logoutRequest_ReasonToJSON(object) {
|
|
|
148
115
|
}
|
|
149
116
|
exports.logoutRequest_ReasonToJSON = logoutRequest_ReasonToJSON;
|
|
150
117
|
function createBaseGenUserInvitationRequest() {
|
|
151
|
-
return {
|
|
152
|
-
limitUid: undefined,
|
|
153
|
-
notAfter: undefined,
|
|
154
|
-
limitUsageCount: undefined,
|
|
155
|
-
limitRole: undefined,
|
|
156
|
-
};
|
|
118
|
+
return { limitUid: undefined, notAfter: undefined, limitUsageCount: undefined, limitRole: undefined };
|
|
157
119
|
}
|
|
158
120
|
exports.GenUserInvitationRequest = {
|
|
159
121
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -200,29 +162,18 @@ exports.GenUserInvitationRequest = {
|
|
|
200
162
|
fromJSON(object) {
|
|
201
163
|
return {
|
|
202
164
|
limitUid: isSet(object.limitUid) ? String(object.limitUid) : undefined,
|
|
203
|
-
notAfter: isSet(object.notAfter)
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
limitUsageCount: isSet(object.limitUsageCount)
|
|
207
|
-
? Number(object.limitUsageCount)
|
|
208
|
-
: undefined,
|
|
209
|
-
limitRole: isSet(object.limitRole)
|
|
210
|
-
? roleFromJSON(object.limitRole)
|
|
211
|
-
: undefined,
|
|
165
|
+
notAfter: isSet(object.notAfter) ? fromJsonTimestamp(object.notAfter) : undefined,
|
|
166
|
+
limitUsageCount: isSet(object.limitUsageCount) ? Number(object.limitUsageCount) : undefined,
|
|
167
|
+
limitRole: isSet(object.limitRole) ? roleFromJSON(object.limitRole) : undefined,
|
|
212
168
|
};
|
|
213
169
|
},
|
|
214
170
|
toJSON(message) {
|
|
215
171
|
const obj = {};
|
|
216
172
|
message.limitUid !== undefined && (obj.limitUid = message.limitUid);
|
|
217
|
-
message.notAfter !== undefined &&
|
|
218
|
-
|
|
219
|
-
message.limitUsageCount !== undefined &&
|
|
220
|
-
(obj.limitUsageCount = Math.round(message.limitUsageCount));
|
|
173
|
+
message.notAfter !== undefined && (obj.notAfter = message.notAfter.toISOString());
|
|
174
|
+
message.limitUsageCount !== undefined && (obj.limitUsageCount = Math.round(message.limitUsageCount));
|
|
221
175
|
message.limitRole !== undefined &&
|
|
222
|
-
(obj.limitRole =
|
|
223
|
-
message.limitRole !== undefined
|
|
224
|
-
? roleToJSON(message.limitRole)
|
|
225
|
-
: undefined);
|
|
176
|
+
(obj.limitRole = message.limitRole !== undefined ? roleToJSON(message.limitRole) : undefined);
|
|
226
177
|
return obj;
|
|
227
178
|
},
|
|
228
179
|
fromPartial(object) {
|
|
@@ -263,9 +214,7 @@ exports.UserInvitation = {
|
|
|
263
214
|
return message;
|
|
264
215
|
},
|
|
265
216
|
fromJSON(object) {
|
|
266
|
-
return {
|
|
267
|
-
token: isSet(object.token) ? String(object.token) : "",
|
|
268
|
-
};
|
|
217
|
+
return { token: isSet(object.token) ? String(object.token) : "" };
|
|
269
218
|
},
|
|
270
219
|
toJSON(message) {
|
|
271
220
|
const obj = {};
|
|
@@ -307,11 +256,7 @@ exports.ListUsersReply = {
|
|
|
307
256
|
return message;
|
|
308
257
|
},
|
|
309
258
|
fromJSON(object) {
|
|
310
|
-
return {
|
|
311
|
-
uids: Array.isArray(object === null || object === void 0 ? void 0 : object.uids)
|
|
312
|
-
? object.uids.map((e) => String(e))
|
|
313
|
-
: [],
|
|
314
|
-
};
|
|
259
|
+
return { uids: Array.isArray(object === null || object === void 0 ? void 0 : object.uids) ? object.uids.map((e) => String(e)) : [] };
|
|
315
260
|
},
|
|
316
261
|
toJSON(message) {
|
|
317
262
|
const obj = {};
|
|
@@ -366,9 +311,7 @@ exports.PairDevicesRequest = {
|
|
|
366
311
|
fromJSON(object) {
|
|
367
312
|
return {
|
|
368
313
|
srcId: isSet(object.srcId) ? String(object.srcId) : "",
|
|
369
|
-
otherIds: Array.isArray(object === null || object === void 0 ? void 0 : object.otherIds)
|
|
370
|
-
? object.otherIds.map((e) => String(e))
|
|
371
|
-
: [],
|
|
314
|
+
otherIds: Array.isArray(object === null || object === void 0 ? void 0 : object.otherIds) ? object.otherIds.map((e) => String(e)) : [],
|
|
372
315
|
};
|
|
373
316
|
},
|
|
374
317
|
toJSON(message) {
|
|
@@ -471,9 +414,7 @@ exports.AllocVEIPReply = {
|
|
|
471
414
|
return message;
|
|
472
415
|
},
|
|
473
416
|
fromJSON(object) {
|
|
474
|
-
return {
|
|
475
|
-
ip: isSet(object.ip) ? String(object.ip) : "",
|
|
476
|
-
};
|
|
417
|
+
return { ip: isSet(object.ip) ? String(object.ip) : "" };
|
|
477
418
|
},
|
|
478
419
|
toJSON(message) {
|
|
479
420
|
const obj = {};
|
|
@@ -529,8 +470,7 @@ exports.FreeVEIPRequest = {
|
|
|
529
470
|
toJSON(message) {
|
|
530
471
|
const obj = {};
|
|
531
472
|
message.ip !== undefined && (obj.ip = message.ip);
|
|
532
|
-
message.waitSecond !== undefined &&
|
|
533
|
-
(obj.waitSecond = Math.round(message.waitSecond));
|
|
473
|
+
message.waitSecond !== undefined && (obj.waitSecond = Math.round(message.waitSecond));
|
|
534
474
|
return obj;
|
|
535
475
|
},
|
|
536
476
|
fromPartial(object) {
|
|
@@ -617,17 +557,14 @@ exports.AppCertRequest = {
|
|
|
617
557
|
return {
|
|
618
558
|
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
619
559
|
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
620
|
-
validSeconds: isSet(object.validSeconds)
|
|
621
|
-
? Number(object.validSeconds)
|
|
622
|
-
: 0,
|
|
560
|
+
validSeconds: isSet(object.validSeconds) ? Number(object.validSeconds) : 0,
|
|
623
561
|
};
|
|
624
562
|
},
|
|
625
563
|
toJSON(message) {
|
|
626
564
|
const obj = {};
|
|
627
565
|
message.appid !== undefined && (obj.appid = message.appid);
|
|
628
566
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
629
|
-
message.validSeconds !== undefined &&
|
|
630
|
-
(obj.validSeconds = Math.round(message.validSeconds));
|
|
567
|
+
message.validSeconds !== undefined && (obj.validSeconds = Math.round(message.validSeconds));
|
|
631
568
|
return obj;
|
|
632
569
|
},
|
|
633
570
|
fromPartial(object) {
|
|
@@ -702,13 +639,7 @@ exports.AppCertReply = {
|
|
|
702
639
|
},
|
|
703
640
|
};
|
|
704
641
|
function createBaseAuthToken() {
|
|
705
|
-
return {
|
|
706
|
-
token: "",
|
|
707
|
-
autologinTokenPostUrl: "",
|
|
708
|
-
accessIp: "",
|
|
709
|
-
autologinRedirectUrl: "",
|
|
710
|
-
tokenType: 0,
|
|
711
|
-
};
|
|
642
|
+
return { token: "", autologinTokenPostUrl: "", accessIp: "", autologinRedirectUrl: "", tokenType: 0 };
|
|
712
643
|
}
|
|
713
644
|
exports.AuthToken = {
|
|
714
645
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -761,28 +692,19 @@ exports.AuthToken = {
|
|
|
761
692
|
fromJSON(object) {
|
|
762
693
|
return {
|
|
763
694
|
token: isSet(object.token) ? String(object.token) : "",
|
|
764
|
-
autologinTokenPostUrl: isSet(object.autologinTokenPostUrl)
|
|
765
|
-
? String(object.autologinTokenPostUrl)
|
|
766
|
-
: "",
|
|
695
|
+
autologinTokenPostUrl: isSet(object.autologinTokenPostUrl) ? String(object.autologinTokenPostUrl) : "",
|
|
767
696
|
accessIp: isSet(object.accessIp) ? String(object.accessIp) : "",
|
|
768
|
-
autologinRedirectUrl: isSet(object.autologinRedirectUrl)
|
|
769
|
-
|
|
770
|
-
: "",
|
|
771
|
-
tokenType: isSet(object.tokenType)
|
|
772
|
-
? authToken_TokenTypeFromJSON(object.tokenType)
|
|
773
|
-
: 0,
|
|
697
|
+
autologinRedirectUrl: isSet(object.autologinRedirectUrl) ? String(object.autologinRedirectUrl) : "",
|
|
698
|
+
tokenType: isSet(object.tokenType) ? authToken_TokenTypeFromJSON(object.tokenType) : 0,
|
|
774
699
|
};
|
|
775
700
|
},
|
|
776
701
|
toJSON(message) {
|
|
777
702
|
const obj = {};
|
|
778
703
|
message.token !== undefined && (obj.token = message.token);
|
|
779
|
-
message.autologinTokenPostUrl !== undefined &&
|
|
780
|
-
(obj.autologinTokenPostUrl = message.autologinTokenPostUrl);
|
|
704
|
+
message.autologinTokenPostUrl !== undefined && (obj.autologinTokenPostUrl = message.autologinTokenPostUrl);
|
|
781
705
|
message.accessIp !== undefined && (obj.accessIp = message.accessIp);
|
|
782
|
-
message.autologinRedirectUrl !== undefined &&
|
|
783
|
-
|
|
784
|
-
message.tokenType !== undefined &&
|
|
785
|
-
(obj.tokenType = authToken_TokenTypeToJSON(message.tokenType));
|
|
706
|
+
message.autologinRedirectUrl !== undefined && (obj.autologinRedirectUrl = message.autologinRedirectUrl);
|
|
707
|
+
message.tokenType !== undefined && (obj.tokenType = authToken_TokenTypeToJSON(message.tokenType));
|
|
786
708
|
return obj;
|
|
787
709
|
},
|
|
788
710
|
fromPartial(object) {
|
|
@@ -797,12 +719,7 @@ exports.AuthToken = {
|
|
|
797
719
|
},
|
|
798
720
|
};
|
|
799
721
|
function createBaseLoginInfo() {
|
|
800
|
-
return {
|
|
801
|
-
uid: "",
|
|
802
|
-
deviceId: "",
|
|
803
|
-
when: undefined,
|
|
804
|
-
autologinTokenRequestContent: "",
|
|
805
|
-
};
|
|
722
|
+
return { uid: "", deviceId: "", when: undefined, autologinTokenRequestContent: "" };
|
|
806
723
|
}
|
|
807
724
|
exports.LoginInfo = {
|
|
808
725
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -871,8 +788,7 @@ exports.LoginInfo = {
|
|
|
871
788
|
message.uid = (_a = object.uid) !== null && _a !== void 0 ? _a : "";
|
|
872
789
|
message.deviceId = (_b = object.deviceId) !== null && _b !== void 0 ? _b : "";
|
|
873
790
|
message.when = (_c = object.when) !== null && _c !== void 0 ? _c : undefined;
|
|
874
|
-
message.autologinTokenRequestContent =
|
|
875
|
-
(_d = object.autologinTokenRequestContent) !== null && _d !== void 0 ? _d : "";
|
|
791
|
+
message.autologinTokenRequestContent = (_d = object.autologinTokenRequestContent) !== null && _d !== void 0 ? _d : "";
|
|
876
792
|
return message;
|
|
877
793
|
},
|
|
878
794
|
};
|
|
@@ -904,9 +820,7 @@ exports.DeviceID = {
|
|
|
904
820
|
return message;
|
|
905
821
|
},
|
|
906
822
|
fromJSON(object) {
|
|
907
|
-
return {
|
|
908
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
909
|
-
};
|
|
823
|
+
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
910
824
|
},
|
|
911
825
|
toJSON(message) {
|
|
912
826
|
const obj = {};
|
|
@@ -921,15 +835,7 @@ exports.DeviceID = {
|
|
|
921
835
|
},
|
|
922
836
|
};
|
|
923
837
|
function createBaseBoxInfo() {
|
|
924
|
-
return {
|
|
925
|
-
originServer: "",
|
|
926
|
-
virtualIp: "",
|
|
927
|
-
boxId: "",
|
|
928
|
-
boxName: "",
|
|
929
|
-
boxDomain: "",
|
|
930
|
-
certReady: false,
|
|
931
|
-
boxCert: "",
|
|
932
|
-
};
|
|
838
|
+
return { originServer: "", virtualIp: "", boxId: "", boxName: "", boxDomain: "", certReady: false, boxCert: "" };
|
|
933
839
|
}
|
|
934
840
|
exports.BoxInfo = {
|
|
935
841
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -993,9 +899,7 @@ exports.BoxInfo = {
|
|
|
993
899
|
},
|
|
994
900
|
fromJSON(object) {
|
|
995
901
|
return {
|
|
996
|
-
originServer: isSet(object.originServer)
|
|
997
|
-
? String(object.originServer)
|
|
998
|
-
: "",
|
|
902
|
+
originServer: isSet(object.originServer) ? String(object.originServer) : "",
|
|
999
903
|
virtualIp: isSet(object.virtualIp) ? String(object.virtualIp) : "",
|
|
1000
904
|
boxId: isSet(object.boxId) ? String(object.boxId) : "",
|
|
1001
905
|
boxName: isSet(object.boxName) ? String(object.boxName) : "",
|
|
@@ -1006,8 +910,7 @@ exports.BoxInfo = {
|
|
|
1006
910
|
},
|
|
1007
911
|
toJSON(message) {
|
|
1008
912
|
const obj = {};
|
|
1009
|
-
message.originServer !== undefined &&
|
|
1010
|
-
(obj.originServer = message.originServer);
|
|
913
|
+
message.originServer !== undefined && (obj.originServer = message.originServer);
|
|
1011
914
|
message.virtualIp !== undefined && (obj.virtualIp = message.virtualIp);
|
|
1012
915
|
message.boxId !== undefined && (obj.boxId = message.boxId);
|
|
1013
916
|
message.boxName !== undefined && (obj.boxName = message.boxName);
|
|
@@ -1029,53 +932,6 @@ exports.BoxInfo = {
|
|
|
1029
932
|
return message;
|
|
1030
933
|
},
|
|
1031
934
|
};
|
|
1032
|
-
function createBaseBoxStatus() {
|
|
1033
|
-
return { status: 0 };
|
|
1034
|
-
}
|
|
1035
|
-
exports.BoxStatus = {
|
|
1036
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1037
|
-
if (message.status !== 0) {
|
|
1038
|
-
writer.uint32(8).int32(message.status);
|
|
1039
|
-
}
|
|
1040
|
-
return writer;
|
|
1041
|
-
},
|
|
1042
|
-
decode(input, length) {
|
|
1043
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1044
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1045
|
-
const message = createBaseBoxStatus();
|
|
1046
|
-
while (reader.pos < end) {
|
|
1047
|
-
const tag = reader.uint32();
|
|
1048
|
-
switch (tag >>> 3) {
|
|
1049
|
-
case 1:
|
|
1050
|
-
message.status = reader.int32();
|
|
1051
|
-
break;
|
|
1052
|
-
default:
|
|
1053
|
-
reader.skipType(tag & 7);
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
return message;
|
|
1058
|
-
},
|
|
1059
|
-
fromJSON(object) {
|
|
1060
|
-
return {
|
|
1061
|
-
status: isSet(object.status)
|
|
1062
|
-
? boxStatus_StatusFromJSON(object.status)
|
|
1063
|
-
: 0,
|
|
1064
|
-
};
|
|
1065
|
-
},
|
|
1066
|
-
toJSON(message) {
|
|
1067
|
-
const obj = {};
|
|
1068
|
-
message.status !== undefined &&
|
|
1069
|
-
(obj.status = boxStatus_StatusToJSON(message.status));
|
|
1070
|
-
return obj;
|
|
1071
|
-
},
|
|
1072
|
-
fromPartial(object) {
|
|
1073
|
-
var _a;
|
|
1074
|
-
const message = createBaseBoxStatus();
|
|
1075
|
-
message.status = (_a = object.status) !== null && _a !== void 0 ? _a : 0;
|
|
1076
|
-
return message;
|
|
1077
|
-
},
|
|
1078
|
-
};
|
|
1079
935
|
function createBaseDomainCertRequest() {
|
|
1080
936
|
return { domain: "" };
|
|
1081
937
|
}
|
|
@@ -1104,9 +960,7 @@ exports.DomainCertRequest = {
|
|
|
1104
960
|
return message;
|
|
1105
961
|
},
|
|
1106
962
|
fromJSON(object) {
|
|
1107
|
-
return {
|
|
1108
|
-
domain: isSet(object.domain) ? String(object.domain) : "",
|
|
1109
|
-
};
|
|
963
|
+
return { domain: isSet(object.domain) ? String(object.domain) : "" };
|
|
1110
964
|
},
|
|
1111
965
|
toJSON(message) {
|
|
1112
966
|
const obj = {};
|
|
@@ -1163,9 +1017,7 @@ exports.DomainCertReply = {
|
|
|
1163
1017
|
return {
|
|
1164
1018
|
cert: isSet(object.cert) ? String(object.cert) : "",
|
|
1165
1019
|
key: isSet(object.key) ? String(object.key) : "",
|
|
1166
|
-
ocsp: isSet(object.ocsp)
|
|
1167
|
-
? bytesFromBase64(object.ocsp)
|
|
1168
|
-
: new Uint8Array(),
|
|
1020
|
+
ocsp: isSet(object.ocsp) ? bytesFromBase64(object.ocsp) : new Uint8Array(),
|
|
1169
1021
|
};
|
|
1170
1022
|
},
|
|
1171
1023
|
toJSON(message) {
|
|
@@ -1186,15 +1038,7 @@ exports.DomainCertReply = {
|
|
|
1186
1038
|
},
|
|
1187
1039
|
};
|
|
1188
1040
|
function createBaseDevice() {
|
|
1189
|
-
return {
|
|
1190
|
-
udid: "",
|
|
1191
|
-
peerId: "",
|
|
1192
|
-
isOnline: false,
|
|
1193
|
-
deviceApiUrl: "",
|
|
1194
|
-
name: "",
|
|
1195
|
-
model: "",
|
|
1196
|
-
bindingTime: undefined,
|
|
1197
|
-
};
|
|
1041
|
+
return { udid: "", peerId: "", isOnline: false, deviceApiUrl: "", name: "", model: "", bindingTime: undefined };
|
|
1198
1042
|
}
|
|
1199
1043
|
exports.Device = {
|
|
1200
1044
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1261,14 +1105,10 @@ exports.Device = {
|
|
|
1261
1105
|
udid: isSet(object.udid) ? String(object.udid) : "",
|
|
1262
1106
|
peerId: isSet(object.peerId) ? String(object.peerId) : "",
|
|
1263
1107
|
isOnline: isSet(object.isOnline) ? Boolean(object.isOnline) : false,
|
|
1264
|
-
deviceApiUrl: isSet(object.deviceApiUrl)
|
|
1265
|
-
? String(object.deviceApiUrl)
|
|
1266
|
-
: "",
|
|
1108
|
+
deviceApiUrl: isSet(object.deviceApiUrl) ? String(object.deviceApiUrl) : "",
|
|
1267
1109
|
name: isSet(object.name) ? String(object.name) : "",
|
|
1268
1110
|
model: isSet(object.model) ? String(object.model) : "",
|
|
1269
|
-
bindingTime: isSet(object.bindingTime)
|
|
1270
|
-
? fromJsonTimestamp(object.bindingTime)
|
|
1271
|
-
: undefined,
|
|
1111
|
+
bindingTime: isSet(object.bindingTime) ? fromJsonTimestamp(object.bindingTime) : undefined,
|
|
1272
1112
|
};
|
|
1273
1113
|
},
|
|
1274
1114
|
toJSON(message) {
|
|
@@ -1276,12 +1116,10 @@ exports.Device = {
|
|
|
1276
1116
|
message.udid !== undefined && (obj.udid = message.udid);
|
|
1277
1117
|
message.peerId !== undefined && (obj.peerId = message.peerId);
|
|
1278
1118
|
message.isOnline !== undefined && (obj.isOnline = message.isOnline);
|
|
1279
|
-
message.deviceApiUrl !== undefined &&
|
|
1280
|
-
(obj.deviceApiUrl = message.deviceApiUrl);
|
|
1119
|
+
message.deviceApiUrl !== undefined && (obj.deviceApiUrl = message.deviceApiUrl);
|
|
1281
1120
|
message.name !== undefined && (obj.name = message.name);
|
|
1282
1121
|
message.model !== undefined && (obj.model = message.model);
|
|
1283
|
-
message.bindingTime !== undefined &&
|
|
1284
|
-
(obj.bindingTime = message.bindingTime.toISOString());
|
|
1122
|
+
message.bindingTime !== undefined && (obj.bindingTime = message.bindingTime.toISOString());
|
|
1285
1123
|
return obj;
|
|
1286
1124
|
},
|
|
1287
1125
|
fromPartial(object) {
|
|
@@ -1325,9 +1163,7 @@ exports.ListDeviceRequest = {
|
|
|
1325
1163
|
return message;
|
|
1326
1164
|
},
|
|
1327
1165
|
fromJSON(object) {
|
|
1328
|
-
return {
|
|
1329
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1330
|
-
};
|
|
1166
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1331
1167
|
},
|
|
1332
1168
|
toJSON(message) {
|
|
1333
1169
|
const obj = {};
|
|
@@ -1369,11 +1205,7 @@ exports.ListDeviceReply = {
|
|
|
1369
1205
|
return message;
|
|
1370
1206
|
},
|
|
1371
1207
|
fromJSON(object) {
|
|
1372
|
-
return {
|
|
1373
|
-
devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices)
|
|
1374
|
-
? object.devices.map((e) => exports.Device.fromJSON(e))
|
|
1375
|
-
: [],
|
|
1376
|
-
};
|
|
1208
|
+
return { devices: Array.isArray(object === null || object === void 0 ? void 0 : object.devices) ? object.devices.map((e) => exports.Device.fromJSON(e)) : [] };
|
|
1377
1209
|
},
|
|
1378
1210
|
toJSON(message) {
|
|
1379
1211
|
const obj = {};
|
|
@@ -1420,9 +1252,7 @@ exports.UserID = {
|
|
|
1420
1252
|
return message;
|
|
1421
1253
|
},
|
|
1422
1254
|
fromJSON(object) {
|
|
1423
|
-
return {
|
|
1424
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1425
|
-
};
|
|
1255
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1426
1256
|
},
|
|
1427
1257
|
toJSON(message) {
|
|
1428
1258
|
const obj = {};
|
|
@@ -1591,10 +1421,8 @@ exports.ResetPasswordRequest = {
|
|
|
1591
1421
|
toJSON(message) {
|
|
1592
1422
|
const obj = {};
|
|
1593
1423
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1594
|
-
message.oldPassword !== undefined &&
|
|
1595
|
-
|
|
1596
|
-
message.newPassword !== undefined &&
|
|
1597
|
-
(obj.newPassword = message.newPassword);
|
|
1424
|
+
message.oldPassword !== undefined && (obj.oldPassword = message.oldPassword);
|
|
1425
|
+
message.newPassword !== undefined && (obj.newPassword = message.newPassword);
|
|
1598
1426
|
return obj;
|
|
1599
1427
|
},
|
|
1600
1428
|
fromPartial(object) {
|
|
@@ -1634,9 +1462,7 @@ exports.DeleteUserRequest = {
|
|
|
1634
1462
|
return message;
|
|
1635
1463
|
},
|
|
1636
1464
|
fromJSON(object) {
|
|
1637
|
-
return {
|
|
1638
|
-
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1639
|
-
};
|
|
1465
|
+
return { uid: isSet(object.uid) ? String(object.uid) : "" };
|
|
1640
1466
|
},
|
|
1641
1467
|
toJSON(message) {
|
|
1642
1468
|
const obj = {};
|
|
@@ -1754,8 +1580,7 @@ exports.ForceResetPasswordRequest = {
|
|
|
1754
1580
|
toJSON(message) {
|
|
1755
1581
|
const obj = {};
|
|
1756
1582
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1757
|
-
message.newPassword !== undefined &&
|
|
1758
|
-
(obj.newPassword = message.newPassword);
|
|
1583
|
+
message.newPassword !== undefined && (obj.newPassword = message.newPassword);
|
|
1759
1584
|
return obj;
|
|
1760
1585
|
},
|
|
1761
1586
|
fromPartial(object) {
|
|
@@ -1809,17 +1634,14 @@ exports.LogoutRequest = {
|
|
|
1809
1634
|
return {
|
|
1810
1635
|
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
1811
1636
|
udid: isSet(object.udid) ? String(object.udid) : "",
|
|
1812
|
-
reason: isSet(object.reason)
|
|
1813
|
-
? logoutRequest_ReasonFromJSON(object.reason)
|
|
1814
|
-
: 0,
|
|
1637
|
+
reason: isSet(object.reason) ? logoutRequest_ReasonFromJSON(object.reason) : 0,
|
|
1815
1638
|
};
|
|
1816
1639
|
},
|
|
1817
1640
|
toJSON(message) {
|
|
1818
1641
|
const obj = {};
|
|
1819
1642
|
message.uid !== undefined && (obj.uid = message.uid);
|
|
1820
1643
|
message.udid !== undefined && (obj.udid = message.udid);
|
|
1821
|
-
message.reason !== undefined &&
|
|
1822
|
-
(obj.reason = logoutRequest_ReasonToJSON(message.reason));
|
|
1644
|
+
message.reason !== undefined && (obj.reason = logoutRequest_ReasonToJSON(message.reason));
|
|
1823
1645
|
return obj;
|
|
1824
1646
|
},
|
|
1825
1647
|
fromPartial(object) {
|
|
@@ -1891,7 +1713,6 @@ class HPortalSysClientImpl {
|
|
|
1891
1713
|
this.ListDevices = this.ListDevices.bind(this);
|
|
1892
1714
|
this.QueryDeviceByID = this.QueryDeviceByID.bind(this);
|
|
1893
1715
|
this.QueryBoxInfo = this.QueryBoxInfo.bind(this);
|
|
1894
|
-
this.SetBoxStatus = this.SetBoxStatus.bind(this);
|
|
1895
1716
|
this.GetDomainCert = this.GetDomainCert.bind(this);
|
|
1896
1717
|
this.GetAppCert = this.GetAppCert.bind(this);
|
|
1897
1718
|
this.AllocVirtualExternalIP = this.AllocVirtualExternalIP.bind(this);
|
|
@@ -1920,9 +1741,6 @@ class HPortalSysClientImpl {
|
|
|
1920
1741
|
QueryBoxInfo(request, metadata) {
|
|
1921
1742
|
return this.rpc.unary(exports.HPortalSysQueryBoxInfoDesc, empty_1.Empty.fromPartial(request), metadata);
|
|
1922
1743
|
}
|
|
1923
|
-
SetBoxStatus(request, metadata) {
|
|
1924
|
-
return this.rpc.unary(exports.HPortalSysSetBoxStatusDesc, exports.BoxStatus.fromPartial(request), metadata);
|
|
1925
|
-
}
|
|
1926
1744
|
GetDomainCert(request, metadata) {
|
|
1927
1745
|
return this.rpc.unary(exports.HPortalSysGetDomainCertDesc, exports.DomainCertRequest.fromPartial(request), metadata);
|
|
1928
1746
|
}
|
|
@@ -1970,9 +1788,7 @@ class HPortalSysClientImpl {
|
|
|
1970
1788
|
}
|
|
1971
1789
|
}
|
|
1972
1790
|
exports.HPortalSysClientImpl = HPortalSysClientImpl;
|
|
1973
|
-
exports.HPortalSysDesc = {
|
|
1974
|
-
serviceName: "cloud.lazycat.apis.sys.HPortalSys",
|
|
1975
|
-
};
|
|
1791
|
+
exports.HPortalSysDesc = { serviceName: "cloud.lazycat.apis.sys.HPortalSys" };
|
|
1976
1792
|
exports.HPortalSysQueryLoginDesc = {
|
|
1977
1793
|
methodName: "QueryLogin",
|
|
1978
1794
|
service: exports.HPortalSysDesc,
|
|
@@ -2045,24 +1861,6 @@ exports.HPortalSysQueryBoxInfoDesc = {
|
|
|
2045
1861
|
},
|
|
2046
1862
|
},
|
|
2047
1863
|
};
|
|
2048
|
-
exports.HPortalSysSetBoxStatusDesc = {
|
|
2049
|
-
methodName: "SetBoxStatus",
|
|
2050
|
-
service: exports.HPortalSysDesc,
|
|
2051
|
-
requestStream: false,
|
|
2052
|
-
responseStream: false,
|
|
2053
|
-
requestType: {
|
|
2054
|
-
serializeBinary() {
|
|
2055
|
-
return exports.BoxStatus.encode(this).finish();
|
|
2056
|
-
},
|
|
2057
|
-
},
|
|
2058
|
-
responseType: {
|
|
2059
|
-
deserializeBinary(data) {
|
|
2060
|
-
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
2061
|
-
return this;
|
|
2062
|
-
} });
|
|
2063
|
-
},
|
|
2064
|
-
},
|
|
2065
|
-
};
|
|
2066
1864
|
exports.HPortalSysGetDomainCertDesc = {
|
|
2067
1865
|
methodName: "GetDomainCert",
|
|
2068
1866
|
service: exports.HPortalSysDesc,
|
|
@@ -2372,7 +2170,7 @@ class GrpcWebImpl {
|
|
|
2372
2170
|
? 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))
|
|
2373
2171
|
: metadata || this.options.metadata;
|
|
2374
2172
|
return new rxjs_1.Observable((observer) => {
|
|
2375
|
-
const upStream = () => {
|
|
2173
|
+
const upStream = (() => {
|
|
2376
2174
|
const client = grpc_web_1.grpc.invoke(methodDesc, {
|
|
2377
2175
|
host: this.host,
|
|
2378
2176
|
request,
|
|
@@ -2396,21 +2194,25 @@ class GrpcWebImpl {
|
|
|
2396
2194
|
},
|
|
2397
2195
|
});
|
|
2398
2196
|
observer.add(() => client.close());
|
|
2399
|
-
};
|
|
2197
|
+
});
|
|
2400
2198
|
upStream();
|
|
2401
2199
|
}).pipe((0, operators_1.share)());
|
|
2402
2200
|
}
|
|
2403
2201
|
}
|
|
2404
2202
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
2405
2203
|
var globalThis = (() => {
|
|
2406
|
-
if (typeof globalThis !== "undefined")
|
|
2204
|
+
if (typeof globalThis !== "undefined") {
|
|
2407
2205
|
return globalThis;
|
|
2408
|
-
|
|
2206
|
+
}
|
|
2207
|
+
if (typeof self !== "undefined") {
|
|
2409
2208
|
return self;
|
|
2410
|
-
|
|
2209
|
+
}
|
|
2210
|
+
if (typeof window !== "undefined") {
|
|
2411
2211
|
return window;
|
|
2412
|
-
|
|
2212
|
+
}
|
|
2213
|
+
if (typeof global !== "undefined") {
|
|
2413
2214
|
return global;
|
|
2215
|
+
}
|
|
2414
2216
|
throw "Unable to locate global object";
|
|
2415
2217
|
})();
|
|
2416
2218
|
function bytesFromBase64(b64) {
|