@lazycatcloud/sdk 0.1.130 → 0.1.131
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 +87 -656
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +220 -163
- 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/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/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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- 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 +39 -81
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +72 -104
- 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 +17 -60
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +52 -57
- 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 +1 -1
- 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/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 +27 -97
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +82 -93
- 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 +95 -121
- 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 +1 -1
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GrpcWebError = exports.GrpcWebImpl = exports.CoreSystemInstanceResumeDesc = exports.CoreSystemInstancePauseDesc = exports.CoreSystemInstanceRemoveDesc = exports.CoreSystemInstanceAddDesc = exports.CoreSystemInstanceStatusDesc = exports.CoreSystemAppStatusDesc = exports.CoreSystemStatusDesc = exports.CoreSystemQueryDesc = exports.CoreSystemEnableDesc = exports.CoreSystemDisableDesc = exports.CoreSystemRemoveDesc = exports.CoreSystemApply2Desc = exports.CoreSystemApplyDesc = exports.CoreSystemListDesc = exports.CoreSystemDesc = exports.CoreSystemClientImpl = exports.RawData = exports.AppsStatus_AppsStatusEntry = exports.AppsStatus = exports.InstancesStatus_InstancesStatusEntry = exports.InstancesStatus = exports.StatusInfo = exports.AppMetadataArray = exports.AppMetadata = exports.QueryRequest = exports.AppIdList = exports.DeleteRequest = exports.InstanceInfo = exports.AppId = exports.ListOptRequest = exports.statusInfo_StatusTypeToJSON = exports.statusInfo_StatusTypeFromJSON = exports.StatusInfo_StatusType = exports.listOptTypeToJSON = exports.listOptTypeFromJSON = exports.ListOptType = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
|
+
const package_manager_1 = require("../package_manager");
|
|
10
|
+
const empty_1 = require("../../google/protobuf/empty");
|
|
9
11
|
const browser_headers_1 = require("browser-headers");
|
|
10
12
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
11
|
-
const empty_1 = require("../../google/protobuf/empty");
|
|
12
|
-
const package_manager_1 = require("../package_manager");
|
|
13
13
|
var ListOptType;
|
|
14
14
|
(function (ListOptType) {
|
|
15
15
|
/** ALL - 列出所有 */
|
|
@@ -173,16 +173,15 @@ exports.ListOptRequest = {
|
|
|
173
173
|
return message;
|
|
174
174
|
},
|
|
175
175
|
fromJSON(object) {
|
|
176
|
-
return {
|
|
176
|
+
return {
|
|
177
|
+
opt: isSet(object.opt) ? listOptTypeFromJSON(object.opt) : 0,
|
|
178
|
+
};
|
|
177
179
|
},
|
|
178
180
|
toJSON(message) {
|
|
179
181
|
const obj = {};
|
|
180
182
|
message.opt !== undefined && (obj.opt = listOptTypeToJSON(message.opt));
|
|
181
183
|
return obj;
|
|
182
184
|
},
|
|
183
|
-
create(base) {
|
|
184
|
-
return exports.ListOptRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
185
|
-
},
|
|
186
185
|
fromPartial(object) {
|
|
187
186
|
var _a;
|
|
188
187
|
const message = createBaseListOptRequest();
|
|
@@ -218,16 +217,15 @@ exports.AppId = {
|
|
|
218
217
|
return message;
|
|
219
218
|
},
|
|
220
219
|
fromJSON(object) {
|
|
221
|
-
return {
|
|
220
|
+
return {
|
|
221
|
+
AppId: isSet(object.AppId) ? String(object.AppId) : "",
|
|
222
|
+
};
|
|
222
223
|
},
|
|
223
224
|
toJSON(message) {
|
|
224
225
|
const obj = {};
|
|
225
226
|
message.AppId !== undefined && (obj.AppId = message.AppId);
|
|
226
227
|
return obj;
|
|
227
228
|
},
|
|
228
|
-
create(base) {
|
|
229
|
-
return exports.AppId.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
230
|
-
},
|
|
231
229
|
fromPartial(object) {
|
|
232
230
|
var _a;
|
|
233
231
|
const message = createBaseAppId();
|
|
@@ -280,9 +278,6 @@ exports.InstanceInfo = {
|
|
|
280
278
|
message.UserId !== undefined && (obj.UserId = message.UserId);
|
|
281
279
|
return obj;
|
|
282
280
|
},
|
|
283
|
-
create(base) {
|
|
284
|
-
return exports.InstanceInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
285
|
-
},
|
|
286
281
|
fromPartial(object) {
|
|
287
282
|
var _a, _b;
|
|
288
283
|
const message = createBaseInstanceInfo();
|
|
@@ -327,18 +322,18 @@ exports.DeleteRequest = {
|
|
|
327
322
|
fromJSON(object) {
|
|
328
323
|
return {
|
|
329
324
|
AppId: isSet(object.AppId) ? String(object.AppId) : "",
|
|
330
|
-
DeleteAllData: isSet(object.DeleteAllData)
|
|
325
|
+
DeleteAllData: isSet(object.DeleteAllData)
|
|
326
|
+
? Boolean(object.DeleteAllData)
|
|
327
|
+
: false,
|
|
331
328
|
};
|
|
332
329
|
},
|
|
333
330
|
toJSON(message) {
|
|
334
331
|
const obj = {};
|
|
335
332
|
message.AppId !== undefined && (obj.AppId = message.AppId);
|
|
336
|
-
message.DeleteAllData !== undefined &&
|
|
333
|
+
message.DeleteAllData !== undefined &&
|
|
334
|
+
(obj.DeleteAllData = message.DeleteAllData);
|
|
337
335
|
return obj;
|
|
338
336
|
},
|
|
339
|
-
create(base) {
|
|
340
|
-
return exports.DeleteRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
341
|
-
},
|
|
342
337
|
fromPartial(object) {
|
|
343
338
|
var _a, _b;
|
|
344
339
|
const message = createBaseDeleteRequest();
|
|
@@ -375,7 +370,11 @@ exports.AppIdList = {
|
|
|
375
370
|
return message;
|
|
376
371
|
},
|
|
377
372
|
fromJSON(object) {
|
|
378
|
-
return {
|
|
373
|
+
return {
|
|
374
|
+
appIdList: Array.isArray(object === null || object === void 0 ? void 0 : object.appIdList)
|
|
375
|
+
? object.appIdList.map((e) => String(e))
|
|
376
|
+
: [],
|
|
377
|
+
};
|
|
379
378
|
},
|
|
380
379
|
toJSON(message) {
|
|
381
380
|
const obj = {};
|
|
@@ -387,9 +386,6 @@ exports.AppIdList = {
|
|
|
387
386
|
}
|
|
388
387
|
return obj;
|
|
389
388
|
},
|
|
390
|
-
create(base) {
|
|
391
|
-
return exports.AppIdList.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
392
|
-
},
|
|
393
389
|
fromPartial(object) {
|
|
394
390
|
var _a;
|
|
395
391
|
const message = createBaseAppIdList();
|
|
@@ -432,7 +428,9 @@ exports.QueryRequest = {
|
|
|
432
428
|
},
|
|
433
429
|
fromJSON(object) {
|
|
434
430
|
return {
|
|
435
|
-
appIdList: Array.isArray(object === null || object === void 0 ? void 0 : object.appIdList)
|
|
431
|
+
appIdList: Array.isArray(object === null || object === void 0 ? void 0 : object.appIdList)
|
|
432
|
+
? object.appIdList.map((e) => String(e))
|
|
433
|
+
: [],
|
|
436
434
|
opt: isSet(object.opt) ? listOptTypeFromJSON(object.opt) : 0,
|
|
437
435
|
};
|
|
438
436
|
},
|
|
@@ -447,9 +445,6 @@ exports.QueryRequest = {
|
|
|
447
445
|
message.opt !== undefined && (obj.opt = listOptTypeToJSON(message.opt));
|
|
448
446
|
return obj;
|
|
449
447
|
},
|
|
450
|
-
create(base) {
|
|
451
|
-
return exports.QueryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
452
|
-
},
|
|
453
448
|
fromPartial(object) {
|
|
454
449
|
var _a, _b;
|
|
455
450
|
const message = createBaseQueryRequest();
|
|
@@ -519,9 +514,6 @@ exports.AppMetadata = {
|
|
|
519
514
|
message.version !== undefined && (obj.version = message.version);
|
|
520
515
|
return obj;
|
|
521
516
|
},
|
|
522
|
-
create(base) {
|
|
523
|
-
return exports.AppMetadata.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
524
|
-
},
|
|
525
517
|
fromPartial(object) {
|
|
526
518
|
var _a, _b, _c, _d;
|
|
527
519
|
const message = createBaseAppMetadata();
|
|
@@ -561,7 +553,9 @@ exports.AppMetadataArray = {
|
|
|
561
553
|
},
|
|
562
554
|
fromJSON(object) {
|
|
563
555
|
return {
|
|
564
|
-
metadata: Array.isArray(object === null || object === void 0 ? void 0 : object.metadata)
|
|
556
|
+
metadata: Array.isArray(object === null || object === void 0 ? void 0 : object.metadata)
|
|
557
|
+
? object.metadata.map((e) => exports.AppMetadata.fromJSON(e))
|
|
558
|
+
: [],
|
|
565
559
|
};
|
|
566
560
|
},
|
|
567
561
|
toJSON(message) {
|
|
@@ -574,13 +568,11 @@ exports.AppMetadataArray = {
|
|
|
574
568
|
}
|
|
575
569
|
return obj;
|
|
576
570
|
},
|
|
577
|
-
create(base) {
|
|
578
|
-
return exports.AppMetadataArray.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
579
|
-
},
|
|
580
571
|
fromPartial(object) {
|
|
581
572
|
var _a;
|
|
582
573
|
const message = createBaseAppMetadataArray();
|
|
583
|
-
message.metadata =
|
|
574
|
+
message.metadata =
|
|
575
|
+
((_a = object.metadata) === null || _a === void 0 ? void 0 : _a.map((e) => exports.AppMetadata.fromPartial(e))) || [];
|
|
584
576
|
return message;
|
|
585
577
|
},
|
|
586
578
|
};
|
|
@@ -619,19 +611,19 @@ exports.StatusInfo = {
|
|
|
619
611
|
},
|
|
620
612
|
fromJSON(object) {
|
|
621
613
|
return {
|
|
622
|
-
status: isSet(object.status)
|
|
614
|
+
status: isSet(object.status)
|
|
615
|
+
? statusInfo_StatusTypeFromJSON(object.status)
|
|
616
|
+
: 0,
|
|
623
617
|
errMsg: isSet(object.errMsg) ? String(object.errMsg) : "",
|
|
624
618
|
};
|
|
625
619
|
},
|
|
626
620
|
toJSON(message) {
|
|
627
621
|
const obj = {};
|
|
628
|
-
message.status !== undefined &&
|
|
622
|
+
message.status !== undefined &&
|
|
623
|
+
(obj.status = statusInfo_StatusTypeToJSON(message.status));
|
|
629
624
|
message.errMsg !== undefined && (obj.errMsg = message.errMsg);
|
|
630
625
|
return obj;
|
|
631
626
|
},
|
|
632
|
-
create(base) {
|
|
633
|
-
return exports.StatusInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
634
|
-
},
|
|
635
627
|
fromPartial(object) {
|
|
636
628
|
var _a, _b;
|
|
637
629
|
const message = createBaseStatusInfo();
|
|
@@ -690,9 +682,6 @@ exports.InstancesStatus = {
|
|
|
690
682
|
}
|
|
691
683
|
return obj;
|
|
692
684
|
},
|
|
693
|
-
create(base) {
|
|
694
|
-
return exports.InstancesStatus.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
695
|
-
},
|
|
696
685
|
fromPartial(object) {
|
|
697
686
|
var _a;
|
|
698
687
|
const message = createBaseInstancesStatus();
|
|
@@ -741,25 +730,28 @@ exports.InstancesStatus_InstancesStatusEntry = {
|
|
|
741
730
|
fromJSON(object) {
|
|
742
731
|
return {
|
|
743
732
|
key: isSet(object.key) ? String(object.key) : "",
|
|
744
|
-
value: isSet(object.value)
|
|
733
|
+
value: isSet(object.value)
|
|
734
|
+
? exports.StatusInfo.fromJSON(object.value)
|
|
735
|
+
: undefined,
|
|
745
736
|
};
|
|
746
737
|
},
|
|
747
738
|
toJSON(message) {
|
|
748
739
|
const obj = {};
|
|
749
740
|
message.key !== undefined && (obj.key = message.key);
|
|
750
|
-
message.value !== undefined &&
|
|
741
|
+
message.value !== undefined &&
|
|
742
|
+
(obj.value = message.value
|
|
743
|
+
? exports.StatusInfo.toJSON(message.value)
|
|
744
|
+
: undefined);
|
|
751
745
|
return obj;
|
|
752
746
|
},
|
|
753
|
-
create(base) {
|
|
754
|
-
return exports.InstancesStatus_InstancesStatusEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
755
|
-
},
|
|
756
747
|
fromPartial(object) {
|
|
757
748
|
var _a;
|
|
758
749
|
const message = createBaseInstancesStatus_InstancesStatusEntry();
|
|
759
750
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
760
|
-
message.value =
|
|
761
|
-
|
|
762
|
-
|
|
751
|
+
message.value =
|
|
752
|
+
object.value !== undefined && object.value !== null
|
|
753
|
+
? exports.StatusInfo.fromPartial(object.value)
|
|
754
|
+
: undefined;
|
|
763
755
|
return message;
|
|
764
756
|
},
|
|
765
757
|
};
|
|
@@ -813,9 +805,6 @@ exports.AppsStatus = {
|
|
|
813
805
|
}
|
|
814
806
|
return obj;
|
|
815
807
|
},
|
|
816
|
-
create(base) {
|
|
817
|
-
return exports.AppsStatus.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
818
|
-
},
|
|
819
808
|
fromPartial(object) {
|
|
820
809
|
var _a;
|
|
821
810
|
const message = createBaseAppsStatus();
|
|
@@ -864,25 +853,28 @@ exports.AppsStatus_AppsStatusEntry = {
|
|
|
864
853
|
fromJSON(object) {
|
|
865
854
|
return {
|
|
866
855
|
key: isSet(object.key) ? String(object.key) : "",
|
|
867
|
-
value: isSet(object.value)
|
|
856
|
+
value: isSet(object.value)
|
|
857
|
+
? exports.InstancesStatus.fromJSON(object.value)
|
|
858
|
+
: undefined,
|
|
868
859
|
};
|
|
869
860
|
},
|
|
870
861
|
toJSON(message) {
|
|
871
862
|
const obj = {};
|
|
872
863
|
message.key !== undefined && (obj.key = message.key);
|
|
873
|
-
message.value !== undefined &&
|
|
864
|
+
message.value !== undefined &&
|
|
865
|
+
(obj.value = message.value
|
|
866
|
+
? exports.InstancesStatus.toJSON(message.value)
|
|
867
|
+
: undefined);
|
|
874
868
|
return obj;
|
|
875
869
|
},
|
|
876
|
-
create(base) {
|
|
877
|
-
return exports.AppsStatus_AppsStatusEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
878
|
-
},
|
|
879
870
|
fromPartial(object) {
|
|
880
871
|
var _a;
|
|
881
872
|
const message = createBaseAppsStatus_AppsStatusEntry();
|
|
882
873
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
883
|
-
message.value =
|
|
884
|
-
|
|
885
|
-
|
|
874
|
+
message.value =
|
|
875
|
+
object.value !== undefined && object.value !== null
|
|
876
|
+
? exports.InstancesStatus.fromPartial(object.value)
|
|
877
|
+
: undefined;
|
|
886
878
|
return message;
|
|
887
879
|
},
|
|
888
880
|
};
|
|
@@ -914,7 +906,11 @@ exports.RawData = {
|
|
|
914
906
|
return message;
|
|
915
907
|
},
|
|
916
908
|
fromJSON(object) {
|
|
917
|
-
return {
|
|
909
|
+
return {
|
|
910
|
+
data: isSet(object.data)
|
|
911
|
+
? bytesFromBase64(object.data)
|
|
912
|
+
: new Uint8Array(),
|
|
913
|
+
};
|
|
918
914
|
},
|
|
919
915
|
toJSON(message) {
|
|
920
916
|
const obj = {};
|
|
@@ -922,9 +918,6 @@ exports.RawData = {
|
|
|
922
918
|
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
923
919
|
return obj;
|
|
924
920
|
},
|
|
925
|
-
create(base) {
|
|
926
|
-
return exports.RawData.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
927
|
-
},
|
|
928
921
|
fromPartial(object) {
|
|
929
922
|
var _a;
|
|
930
923
|
const message = createBaseRawData();
|
|
@@ -994,7 +987,9 @@ class CoreSystemClientImpl {
|
|
|
994
987
|
}
|
|
995
988
|
}
|
|
996
989
|
exports.CoreSystemClientImpl = CoreSystemClientImpl;
|
|
997
|
-
exports.CoreSystemDesc = {
|
|
990
|
+
exports.CoreSystemDesc = {
|
|
991
|
+
serviceName: "cloud.lazycat.apis.sys.CoreSystem",
|
|
992
|
+
};
|
|
998
993
|
exports.CoreSystemListDesc = {
|
|
999
994
|
methodName: "List",
|
|
1000
995
|
service: exports.CoreSystemDesc,
|
|
@@ -1007,9 +1002,8 @@ exports.CoreSystemListDesc = {
|
|
|
1007
1002
|
},
|
|
1008
1003
|
responseType: {
|
|
1009
1004
|
deserializeBinary(data) {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
return value;
|
|
1005
|
+
return Object.assign(Object.assign({}, exports.AppIdList.decode(data)), { toObject() {
|
|
1006
|
+
return this;
|
|
1013
1007
|
} });
|
|
1014
1008
|
},
|
|
1015
1009
|
},
|
|
@@ -1026,9 +1020,8 @@ exports.CoreSystemApplyDesc = {
|
|
|
1026
1020
|
},
|
|
1027
1021
|
responseType: {
|
|
1028
1022
|
deserializeBinary(data) {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
return value;
|
|
1023
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1024
|
+
return this;
|
|
1032
1025
|
} });
|
|
1033
1026
|
},
|
|
1034
1027
|
},
|
|
@@ -1045,9 +1038,8 @@ exports.CoreSystemApply2Desc = {
|
|
|
1045
1038
|
},
|
|
1046
1039
|
responseType: {
|
|
1047
1040
|
deserializeBinary(data) {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
return value;
|
|
1041
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1042
|
+
return this;
|
|
1051
1043
|
} });
|
|
1052
1044
|
},
|
|
1053
1045
|
},
|
|
@@ -1064,9 +1056,8 @@ exports.CoreSystemRemoveDesc = {
|
|
|
1064
1056
|
},
|
|
1065
1057
|
responseType: {
|
|
1066
1058
|
deserializeBinary(data) {
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
return value;
|
|
1059
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1060
|
+
return this;
|
|
1070
1061
|
} });
|
|
1071
1062
|
},
|
|
1072
1063
|
},
|
|
@@ -1083,9 +1074,8 @@ exports.CoreSystemDisableDesc = {
|
|
|
1083
1074
|
},
|
|
1084
1075
|
responseType: {
|
|
1085
1076
|
deserializeBinary(data) {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
return value;
|
|
1077
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1078
|
+
return this;
|
|
1089
1079
|
} });
|
|
1090
1080
|
},
|
|
1091
1081
|
},
|
|
@@ -1102,9 +1092,8 @@ exports.CoreSystemEnableDesc = {
|
|
|
1102
1092
|
},
|
|
1103
1093
|
responseType: {
|
|
1104
1094
|
deserializeBinary(data) {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
return value;
|
|
1095
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1096
|
+
return this;
|
|
1108
1097
|
} });
|
|
1109
1098
|
},
|
|
1110
1099
|
},
|
|
@@ -1121,9 +1110,8 @@ exports.CoreSystemQueryDesc = {
|
|
|
1121
1110
|
},
|
|
1122
1111
|
responseType: {
|
|
1123
1112
|
deserializeBinary(data) {
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
return value;
|
|
1113
|
+
return Object.assign(Object.assign({}, exports.AppMetadataArray.decode(data)), { toObject() {
|
|
1114
|
+
return this;
|
|
1127
1115
|
} });
|
|
1128
1116
|
},
|
|
1129
1117
|
},
|
|
@@ -1140,9 +1128,8 @@ exports.CoreSystemStatusDesc = {
|
|
|
1140
1128
|
},
|
|
1141
1129
|
responseType: {
|
|
1142
1130
|
deserializeBinary(data) {
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
return value;
|
|
1131
|
+
return Object.assign(Object.assign({}, exports.AppsStatus.decode(data)), { toObject() {
|
|
1132
|
+
return this;
|
|
1146
1133
|
} });
|
|
1147
1134
|
},
|
|
1148
1135
|
},
|
|
@@ -1159,9 +1146,8 @@ exports.CoreSystemAppStatusDesc = {
|
|
|
1159
1146
|
},
|
|
1160
1147
|
responseType: {
|
|
1161
1148
|
deserializeBinary(data) {
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
return value;
|
|
1149
|
+
return Object.assign(Object.assign({}, exports.InstancesStatus.decode(data)), { toObject() {
|
|
1150
|
+
return this;
|
|
1165
1151
|
} });
|
|
1166
1152
|
},
|
|
1167
1153
|
},
|
|
@@ -1178,9 +1164,8 @@ exports.CoreSystemInstanceStatusDesc = {
|
|
|
1178
1164
|
},
|
|
1179
1165
|
responseType: {
|
|
1180
1166
|
deserializeBinary(data) {
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
return value;
|
|
1167
|
+
return Object.assign(Object.assign({}, exports.StatusInfo.decode(data)), { toObject() {
|
|
1168
|
+
return this;
|
|
1184
1169
|
} });
|
|
1185
1170
|
},
|
|
1186
1171
|
},
|
|
@@ -1197,9 +1182,8 @@ exports.CoreSystemInstanceAddDesc = {
|
|
|
1197
1182
|
},
|
|
1198
1183
|
responseType: {
|
|
1199
1184
|
deserializeBinary(data) {
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
return value;
|
|
1185
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1186
|
+
return this;
|
|
1203
1187
|
} });
|
|
1204
1188
|
},
|
|
1205
1189
|
},
|
|
@@ -1216,9 +1200,8 @@ exports.CoreSystemInstanceRemoveDesc = {
|
|
|
1216
1200
|
},
|
|
1217
1201
|
responseType: {
|
|
1218
1202
|
deserializeBinary(data) {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
return value;
|
|
1203
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1204
|
+
return this;
|
|
1222
1205
|
} });
|
|
1223
1206
|
},
|
|
1224
1207
|
},
|
|
@@ -1235,9 +1218,8 @@ exports.CoreSystemInstancePauseDesc = {
|
|
|
1235
1218
|
},
|
|
1236
1219
|
responseType: {
|
|
1237
1220
|
deserializeBinary(data) {
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
return value;
|
|
1221
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1222
|
+
return this;
|
|
1241
1223
|
} });
|
|
1242
1224
|
},
|
|
1243
1225
|
},
|
|
@@ -1254,9 +1236,8 @@ exports.CoreSystemInstanceResumeDesc = {
|
|
|
1254
1236
|
},
|
|
1255
1237
|
responseType: {
|
|
1256
1238
|
deserializeBinary(data) {
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
return value;
|
|
1239
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
1240
|
+
return this;
|
|
1260
1241
|
} });
|
|
1261
1242
|
},
|
|
1262
1243
|
},
|
|
@@ -1281,7 +1262,7 @@ class GrpcWebImpl {
|
|
|
1281
1262
|
debug: this.options.debug,
|
|
1282
1263
|
onEnd: function (response) {
|
|
1283
1264
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
1284
|
-
resolve(response.message
|
|
1265
|
+
resolve(response.message);
|
|
1285
1266
|
}
|
|
1286
1267
|
else {
|
|
1287
1268
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -1293,27 +1274,23 @@ class GrpcWebImpl {
|
|
|
1293
1274
|
}
|
|
1294
1275
|
}
|
|
1295
1276
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
1296
|
-
var
|
|
1297
|
-
if (typeof globalThis !== "undefined")
|
|
1277
|
+
var globalThis = (() => {
|
|
1278
|
+
if (typeof globalThis !== "undefined")
|
|
1298
1279
|
return globalThis;
|
|
1299
|
-
|
|
1300
|
-
if (typeof self !== "undefined") {
|
|
1280
|
+
if (typeof self !== "undefined")
|
|
1301
1281
|
return self;
|
|
1302
|
-
|
|
1303
|
-
if (typeof window !== "undefined") {
|
|
1282
|
+
if (typeof window !== "undefined")
|
|
1304
1283
|
return window;
|
|
1305
|
-
|
|
1306
|
-
if (typeof global !== "undefined") {
|
|
1284
|
+
if (typeof global !== "undefined")
|
|
1307
1285
|
return global;
|
|
1308
|
-
}
|
|
1309
1286
|
throw "Unable to locate global object";
|
|
1310
1287
|
})();
|
|
1311
1288
|
function bytesFromBase64(b64) {
|
|
1312
|
-
if (
|
|
1313
|
-
return Uint8Array.from(
|
|
1289
|
+
if (globalThis.Buffer) {
|
|
1290
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1314
1291
|
}
|
|
1315
1292
|
else {
|
|
1316
|
-
const bin =
|
|
1293
|
+
const bin = globalThis.atob(b64);
|
|
1317
1294
|
const arr = new Uint8Array(bin.length);
|
|
1318
1295
|
for (let i = 0; i < bin.length; ++i) {
|
|
1319
1296
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -1322,15 +1299,15 @@ function bytesFromBase64(b64) {
|
|
|
1322
1299
|
}
|
|
1323
1300
|
}
|
|
1324
1301
|
function base64FromBytes(arr) {
|
|
1325
|
-
if (
|
|
1326
|
-
return
|
|
1302
|
+
if (globalThis.Buffer) {
|
|
1303
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
1327
1304
|
}
|
|
1328
1305
|
else {
|
|
1329
1306
|
const bin = [];
|
|
1330
1307
|
arr.forEach((byte) => {
|
|
1331
1308
|
bin.push(String.fromCharCode(byte));
|
|
1332
1309
|
});
|
|
1333
|
-
return
|
|
1310
|
+
return globalThis.btoa(bin.join(""));
|
|
1334
1311
|
}
|
|
1335
1312
|
}
|
|
1336
1313
|
function isObject(value) {
|
|
@@ -1339,7 +1316,7 @@ function isObject(value) {
|
|
|
1339
1316
|
function isSet(value) {
|
|
1340
1317
|
return value !== null && value !== undefined;
|
|
1341
1318
|
}
|
|
1342
|
-
class GrpcWebError extends
|
|
1319
|
+
class GrpcWebError extends Error {
|
|
1343
1320
|
constructor(message, code, metadata) {
|
|
1344
1321
|
super(message);
|
|
1345
1322
|
this.code = code;
|