@springtree/eva-services-core-live-guard 1.5.0 → 1.7.0
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/lib/EVA.Core.LiveGuard.Services.d.ts +29 -13
- package/lib/EVA.Core.LiveGuard.Services.d.ts.map +1 -1
- package/lib/EVA.Core.LiveGuard.Services.js +51 -34
- package/lib/EVA.Core.LiveGuard.Services.js.map +1 -1
- package/lib/eva-services-core-live-guard.es5.js +51 -34
- package/lib/eva-services-core-live-guard.es5.js.map +1 -1
- package/lib/eva-services-core-live-guard.umd.js +51 -34
- package/lib/eva-services-core-live-guard.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { IEvaServiceDefinition } from '@springtree/eva-services-core';
|
|
2
2
|
export declare namespace CoreLiveGuard {
|
|
3
|
+
/**
|
|
4
|
+
* Create a new watchtower device
|
|
5
|
+
|
|
6
|
+
To create a device for fallback IO, leave the HardwareID null
|
|
7
|
+
When a HardwareID is set, the device will be boarded in mender and prepared for use.
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @class CreateWatchtowerDevice
|
|
11
|
+
* @implements {EvaService}
|
|
12
|
+
*/
|
|
13
|
+
class CreateWatchtowerDevice implements IEvaServiceDefinition {
|
|
14
|
+
name: string;
|
|
15
|
+
path: string;
|
|
16
|
+
request?: EVA.Core.LiveGuard.CreateWatchtowerDevice;
|
|
17
|
+
response?: EVA.Core.LiveGuard.CreateWatchtowerDeviceResponse;
|
|
18
|
+
}
|
|
3
19
|
/**
|
|
4
20
|
* TODO: Needs documentation
|
|
5
21
|
*
|
|
@@ -52,6 +68,19 @@ export declare namespace CoreLiveGuard {
|
|
|
52
68
|
request?: EVA.Core.LiveGuard.LiveGuardGenerateApiKey;
|
|
53
69
|
response?: EVA.Core.LiveGuard.LiveGuardGenerateApiKeyResponse;
|
|
54
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Retreive current chain status for the connected watchtower
|
|
73
|
+
*
|
|
74
|
+
* @export
|
|
75
|
+
* @class LiveGuardGetAuditChains
|
|
76
|
+
* @implements {EvaService}
|
|
77
|
+
*/
|
|
78
|
+
class LiveGuardGetAuditChains implements IEvaServiceDefinition {
|
|
79
|
+
name: string;
|
|
80
|
+
path: string;
|
|
81
|
+
request?: EVA.Core.LiveGuard.LiveGuardGetAuditChains;
|
|
82
|
+
response?: EVA.Core.LiveGuard.LiveGuardGetAuditChainsResponse;
|
|
83
|
+
}
|
|
55
84
|
/**
|
|
56
85
|
* Get an authentication token that's valid in the cloud for the current user
|
|
57
86
|
*
|
|
@@ -225,19 +254,6 @@ This should never be used in production environments. This is used to mimick off
|
|
|
225
254
|
request?: EVA.Core.LiveGuard.LiveGuardTriggerSync;
|
|
226
255
|
response?: EVA.Core.EmptyResponseMessage;
|
|
227
256
|
}
|
|
228
|
-
/**
|
|
229
|
-
* Board the given device in Mender, the device should already have a HardwareID and MenderID, can be requested with GetDeviceByMenderHardwareID
|
|
230
|
-
*
|
|
231
|
-
* @export
|
|
232
|
-
* @class WatchtowerBoardDeviceInMender
|
|
233
|
-
* @implements {EvaService}
|
|
234
|
-
*/
|
|
235
|
-
class WatchtowerBoardDeviceInMender implements IEvaServiceDefinition {
|
|
236
|
-
name: string;
|
|
237
|
-
path: string;
|
|
238
|
-
request?: EVA.Core.LiveGuard.WatchtowerBoardDeviceInMender;
|
|
239
|
-
response?: EVA.Core.EmptyResponseMessage;
|
|
240
|
-
}
|
|
241
257
|
/**
|
|
242
258
|
* Execute a command on a device
|
|
243
259
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVA.Core.LiveGuard.Services.d.ts","sourceRoot":"","sources":["../src/EVA.Core.LiveGuard.Services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,yBAAiB,aAAa,CAAC;IAE7B;;;;;;OAMG;IACH,MAAa,SAA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1C;IAED;;;;;;OAMG;IACH,MAAa,wBAAyB,YAAW,qBAAqB;QACpE,IAAI,SAA4C;QAChD,IAAI,SAAuC;QAC3C,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC;QACtD,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,gCAAgC,CAAC;KAChE;IAED;;;;;;;;;OASG;IACH,MAAa,+BAAgC,YAAW,qBAAqB;QAC3E,IAAI,SAAmD;QACvD,IAAI,SAA8C;QAClD,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,+BAA+B,CAAC;QAC7D,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,uCAAuC,CAAC;KACvE;IAED;;;;;;OAMG;IACH,MAAa,0BAA2B,YAAW,qBAAqB;QACtE,IAAI,SAA8C;QAClD,IAAI,SAAyC;QAC7C,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC;QACxD,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,kCAAkC,CAAC;KAClE;CACF"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
export var CoreLiveGuard;
|
|
2
2
|
(function (CoreLiveGuard) {
|
|
3
|
+
/**
|
|
4
|
+
* Create a new watchtower device
|
|
5
|
+
|
|
6
|
+
To create a device for fallback IO, leave the HardwareID null
|
|
7
|
+
When a HardwareID is set, the device will be boarded in mender and prepared for use.
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @class CreateWatchtowerDevice
|
|
11
|
+
* @implements {EvaService}
|
|
12
|
+
*/
|
|
13
|
+
class CreateWatchtowerDevice {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'CoreLiveGuard:CreateWatchtowerDevice';
|
|
16
|
+
this.path = '/message/CreateWatchtowerDevice';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
|
|
3
20
|
/**
|
|
4
21
|
* TODO: Needs documentation
|
|
5
22
|
*
|
|
@@ -10,7 +27,7 @@ export var CoreLiveGuard;
|
|
|
10
27
|
class EVAStatus {
|
|
11
28
|
constructor() {
|
|
12
29
|
this.name = 'CoreLiveGuard:EVAStatus';
|
|
13
|
-
this.path = '/
|
|
30
|
+
this.path = '/message/EVAStatus';
|
|
14
31
|
}
|
|
15
32
|
}
|
|
16
33
|
CoreLiveGuard.EVAStatus = EVAStatus;
|
|
@@ -24,7 +41,7 @@ export var CoreLiveGuard;
|
|
|
24
41
|
class GetUserForLiveGuard {
|
|
25
42
|
constructor() {
|
|
26
43
|
this.name = 'CoreLiveGuard:GetUserForLiveGuard';
|
|
27
|
-
this.path = '/
|
|
44
|
+
this.path = '/message/GetUserForLiveGuard';
|
|
28
45
|
}
|
|
29
46
|
}
|
|
30
47
|
CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
|
|
@@ -38,7 +55,7 @@ export var CoreLiveGuard;
|
|
|
38
55
|
class ListWatchtowerDevices {
|
|
39
56
|
constructor() {
|
|
40
57
|
this.name = 'CoreLiveGuard:ListWatchtowerDevices';
|
|
41
|
-
this.path = '/
|
|
58
|
+
this.path = '/message/ListWatchtowerDevices';
|
|
42
59
|
}
|
|
43
60
|
}
|
|
44
61
|
CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
|
|
@@ -52,10 +69,24 @@ export var CoreLiveGuard;
|
|
|
52
69
|
class LiveGuardGenerateApiKey {
|
|
53
70
|
constructor() {
|
|
54
71
|
this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
|
|
55
|
-
this.path = '/
|
|
72
|
+
this.path = '/message/LiveGuardGenerateApiKey';
|
|
56
73
|
}
|
|
57
74
|
}
|
|
58
75
|
CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
|
|
76
|
+
/**
|
|
77
|
+
* Retreive current chain status for the connected watchtower
|
|
78
|
+
*
|
|
79
|
+
* @export
|
|
80
|
+
* @class LiveGuardGetAuditChains
|
|
81
|
+
* @implements {EvaService}
|
|
82
|
+
*/
|
|
83
|
+
class LiveGuardGetAuditChains {
|
|
84
|
+
constructor() {
|
|
85
|
+
this.name = 'CoreLiveGuard:LiveGuardGetAuditChains';
|
|
86
|
+
this.path = '/message/LiveGuardGetAuditChains';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
|
|
59
90
|
/**
|
|
60
91
|
* Get an authentication token that's valid in the cloud for the current user
|
|
61
92
|
*
|
|
@@ -66,7 +97,7 @@ export var CoreLiveGuard;
|
|
|
66
97
|
class LiveGuardGetCloudToken {
|
|
67
98
|
constructor() {
|
|
68
99
|
this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
|
|
69
|
-
this.path = '/
|
|
100
|
+
this.path = '/message/LiveGuardGetCloudToken';
|
|
70
101
|
}
|
|
71
102
|
}
|
|
72
103
|
CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
|
|
@@ -80,7 +111,7 @@ export var CoreLiveGuard;
|
|
|
80
111
|
class LiveGuardGetInformation {
|
|
81
112
|
constructor() {
|
|
82
113
|
this.name = 'CoreLiveGuard:LiveGuardGetInformation';
|
|
83
|
-
this.path = '/
|
|
114
|
+
this.path = '/message/LiveGuardGetInformation';
|
|
84
115
|
}
|
|
85
116
|
}
|
|
86
117
|
CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
|
|
@@ -94,7 +125,7 @@ export var CoreLiveGuard;
|
|
|
94
125
|
class LiveGuardGetMapping {
|
|
95
126
|
constructor() {
|
|
96
127
|
this.name = 'CoreLiveGuard:LiveGuardGetMapping';
|
|
97
|
-
this.path = '/
|
|
128
|
+
this.path = '/message/LiveGuardGetMapping';
|
|
98
129
|
}
|
|
99
130
|
}
|
|
100
131
|
CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
|
|
@@ -108,7 +139,7 @@ export var CoreLiveGuard;
|
|
|
108
139
|
class LiveGuardGetStatus {
|
|
109
140
|
constructor() {
|
|
110
141
|
this.name = 'CoreLiveGuard:LiveGuardGetStatus';
|
|
111
|
-
this.path = '/
|
|
142
|
+
this.path = '/message/LiveGuardGetStatus';
|
|
112
143
|
}
|
|
113
144
|
}
|
|
114
145
|
CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
|
|
@@ -122,7 +153,7 @@ export var CoreLiveGuard;
|
|
|
122
153
|
class LiveGuardGetTOTPSecret {
|
|
123
154
|
constructor() {
|
|
124
155
|
this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
|
|
125
|
-
this.path = '/
|
|
156
|
+
this.path = '/message/LiveGuardGetTOTPSecret';
|
|
126
157
|
}
|
|
127
158
|
}
|
|
128
159
|
CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
|
|
@@ -138,7 +169,7 @@ Can only be called by the liveguard user
|
|
|
138
169
|
class LiveGuardGetTokenForUser {
|
|
139
170
|
constructor() {
|
|
140
171
|
this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
|
|
141
|
-
this.path = '/
|
|
172
|
+
this.path = '/message/LiveGuardGetTokenForUser';
|
|
142
173
|
}
|
|
143
174
|
}
|
|
144
175
|
CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
|
|
@@ -152,7 +183,7 @@ Can only be called by the liveguard user
|
|
|
152
183
|
class LiveGuardGetUser {
|
|
153
184
|
constructor() {
|
|
154
185
|
this.name = 'CoreLiveGuard:LiveGuardGetUser';
|
|
155
|
-
this.path = '/
|
|
186
|
+
this.path = '/message/LiveGuardGetUser';
|
|
156
187
|
}
|
|
157
188
|
}
|
|
158
189
|
CoreLiveGuard.LiveGuardGetUser = LiveGuardGetUser;
|
|
@@ -166,7 +197,7 @@ Can only be called by the liveguard user
|
|
|
166
197
|
class LiveGuardPushOrder {
|
|
167
198
|
constructor() {
|
|
168
199
|
this.name = 'CoreLiveGuard:LiveGuardPushOrder';
|
|
169
|
-
this.path = '/
|
|
200
|
+
this.path = '/message/LiveGuardPushOrder';
|
|
170
201
|
}
|
|
171
202
|
}
|
|
172
203
|
CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
|
|
@@ -182,7 +213,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
182
213
|
class LiveGuardSetStatus {
|
|
183
214
|
constructor() {
|
|
184
215
|
this.name = 'CoreLiveGuard:LiveGuardSetStatus';
|
|
185
|
-
this.path = '/
|
|
216
|
+
this.path = '/message/LiveGuardSetStatus';
|
|
186
217
|
}
|
|
187
218
|
}
|
|
188
219
|
CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
|
|
@@ -196,7 +227,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
196
227
|
class LiveGuardSyncCatalogByBlob {
|
|
197
228
|
constructor() {
|
|
198
229
|
this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
|
|
199
|
-
this.path = '/
|
|
230
|
+
this.path = '/message/LiveGuardSyncCatalogByBlob';
|
|
200
231
|
}
|
|
201
232
|
}
|
|
202
233
|
CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
|
|
@@ -210,7 +241,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
210
241
|
class LiveGuardSyncGeneralByBlob {
|
|
211
242
|
constructor() {
|
|
212
243
|
this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
|
|
213
|
-
this.path = '/
|
|
244
|
+
this.path = '/message/LiveGuardSyncGeneralByBlob';
|
|
214
245
|
}
|
|
215
246
|
}
|
|
216
247
|
CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
|
|
@@ -224,7 +255,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
224
255
|
class LiveGuardSyncUsersByBlob {
|
|
225
256
|
constructor() {
|
|
226
257
|
this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
|
|
227
|
-
this.path = '/
|
|
258
|
+
this.path = '/message/LiveGuardSyncUsersByBlob';
|
|
228
259
|
}
|
|
229
260
|
}
|
|
230
261
|
CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
|
|
@@ -238,24 +269,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
238
269
|
class LiveGuardTriggerSync {
|
|
239
270
|
constructor() {
|
|
240
271
|
this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
|
|
241
|
-
this.path = '/
|
|
272
|
+
this.path = '/message/LiveGuardTriggerSync';
|
|
242
273
|
}
|
|
243
274
|
}
|
|
244
275
|
CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
|
|
245
|
-
/**
|
|
246
|
-
* Board the given device in Mender, the device should already have a HardwareID and MenderID, can be requested with GetDeviceByMenderHardwareID
|
|
247
|
-
*
|
|
248
|
-
* @export
|
|
249
|
-
* @class WatchtowerBoardDeviceInMender
|
|
250
|
-
* @implements {EvaService}
|
|
251
|
-
*/
|
|
252
|
-
class WatchtowerBoardDeviceInMender {
|
|
253
|
-
constructor() {
|
|
254
|
-
this.name = 'CoreLiveGuard:WatchtowerBoardDeviceInMender';
|
|
255
|
-
this.path = '/api/core/liveguard/WatchtowerBoardDeviceInMender';
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
CoreLiveGuard.WatchtowerBoardDeviceInMender = WatchtowerBoardDeviceInMender;
|
|
259
276
|
/**
|
|
260
277
|
* Execute a command on a device
|
|
261
278
|
*
|
|
@@ -266,7 +283,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
266
283
|
class WatchtowerExecuteCommand {
|
|
267
284
|
constructor() {
|
|
268
285
|
this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
|
|
269
|
-
this.path = '/
|
|
286
|
+
this.path = '/message/WatchtowerExecuteCommand';
|
|
270
287
|
}
|
|
271
288
|
}
|
|
272
289
|
CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
|
|
@@ -283,7 +300,7 @@ Returns the MenderID if found in mender or already stored in EVA
|
|
|
283
300
|
class WatchtowerGetDeviceByHardwareID {
|
|
284
301
|
constructor() {
|
|
285
302
|
this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
|
|
286
|
-
this.path = '/
|
|
303
|
+
this.path = '/message/WatchtowerGetDeviceByHardwareID';
|
|
287
304
|
}
|
|
288
305
|
}
|
|
289
306
|
CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
|
|
@@ -297,7 +314,7 @@ Returns the MenderID if found in mender or already stored in EVA
|
|
|
297
314
|
class WatchtowerGetDeviceDetails {
|
|
298
315
|
constructor() {
|
|
299
316
|
this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
|
|
300
|
-
this.path = '/
|
|
317
|
+
this.path = '/message/WatchtowerGetDeviceDetails';
|
|
301
318
|
}
|
|
302
319
|
}
|
|
303
320
|
CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EVA.Core.LiveGuard.Services.js","sourceRoot":"","sources":["../src/EVA.Core.LiveGuard.Services.ts"],"names":[],"mappings":"AAEE,MAAM,KAAW,aAAa,
|
|
1
|
+
{"version":3,"file":"EVA.Core.LiveGuard.Services.js","sourceRoot":"","sources":["../src/EVA.Core.LiveGuard.Services.ts"],"names":[],"mappings":"AAEE,MAAM,KAAW,aAAa,CA+T7B;AA/TD,WAAiB,aAAa;IAE5B;;;;;;;;;OASG;IACH,MAAa,sBAAsB;QAAnC;YACE,SAAI,GAAG,sCAAsC,CAAC;YAC9C,SAAI,GAAG,iCAAiC,CAAC;QAG3C,CAAC;KAAA;IALY,oCAAsB,yBAKlC,CAAA;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C,CAAA;IAED;;;;;;OAMG;IACH,MAAa,wBAAwB;QAArC;YACE,SAAI,GAAG,wCAAwC,CAAC;YAChD,SAAI,GAAG,mCAAmC,CAAC;QAG7C,CAAC;KAAA;IALY,sCAAwB,2BAKpC,CAAA;IAED;;;;;;OAMG;IACH,MAAa,oBAAoB;QAAjC;YACE,SAAI,GAAG,oCAAoC,CAAC;YAC5C,SAAI,GAAG,+BAA+B,CAAC;QAGzC,CAAC;KAAA;IALY,kCAAoB,uBAKhC,CAAA;IAED;;;;;;OAMG;IACH,MAAa,wBAAwB;QAArC;YACE,SAAI,GAAG,wCAAwC,CAAC;YAChD,SAAI,GAAG,mCAAmC,CAAC;QAG7C,CAAC;KAAA;IALY,sCAAwB,2BAKpC,CAAA;IAED;;;;;;;;;OASG;IACH,MAAa,+BAA+B;QAA5C;YACE,SAAI,GAAG,+CAA+C,CAAC;YACvD,SAAI,GAAG,0CAA0C,CAAC;QAGpD,CAAC;KAAA;IALY,6CAA+B,kCAK3C,CAAA;IAED;;;;;;OAMG;IACH,MAAa,0BAA0B;QAAvC;YACE,SAAI,GAAG,0CAA0C,CAAC;YAClD,SAAI,GAAG,qCAAqC,CAAC;QAG/C,CAAC;KAAA;IALY,wCAA0B,6BAKtC,CAAA;AACH,CAAC,EA/TgB,aAAa,KAAb,aAAa,QA+T7B"}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
var CoreLiveGuard;
|
|
2
2
|
(function (CoreLiveGuard) {
|
|
3
|
+
/**
|
|
4
|
+
* Create a new watchtower device
|
|
5
|
+
|
|
6
|
+
To create a device for fallback IO, leave the HardwareID null
|
|
7
|
+
When a HardwareID is set, the device will be boarded in mender and prepared for use.
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @class CreateWatchtowerDevice
|
|
11
|
+
* @implements {EvaService}
|
|
12
|
+
*/
|
|
13
|
+
class CreateWatchtowerDevice {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.name = 'CoreLiveGuard:CreateWatchtowerDevice';
|
|
16
|
+
this.path = '/message/CreateWatchtowerDevice';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
|
|
3
20
|
/**
|
|
4
21
|
* TODO: Needs documentation
|
|
5
22
|
*
|
|
@@ -10,7 +27,7 @@ var CoreLiveGuard;
|
|
|
10
27
|
class EVAStatus {
|
|
11
28
|
constructor() {
|
|
12
29
|
this.name = 'CoreLiveGuard:EVAStatus';
|
|
13
|
-
this.path = '/
|
|
30
|
+
this.path = '/message/EVAStatus';
|
|
14
31
|
}
|
|
15
32
|
}
|
|
16
33
|
CoreLiveGuard.EVAStatus = EVAStatus;
|
|
@@ -24,7 +41,7 @@ var CoreLiveGuard;
|
|
|
24
41
|
class GetUserForLiveGuard {
|
|
25
42
|
constructor() {
|
|
26
43
|
this.name = 'CoreLiveGuard:GetUserForLiveGuard';
|
|
27
|
-
this.path = '/
|
|
44
|
+
this.path = '/message/GetUserForLiveGuard';
|
|
28
45
|
}
|
|
29
46
|
}
|
|
30
47
|
CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
|
|
@@ -38,7 +55,7 @@ var CoreLiveGuard;
|
|
|
38
55
|
class ListWatchtowerDevices {
|
|
39
56
|
constructor() {
|
|
40
57
|
this.name = 'CoreLiveGuard:ListWatchtowerDevices';
|
|
41
|
-
this.path = '/
|
|
58
|
+
this.path = '/message/ListWatchtowerDevices';
|
|
42
59
|
}
|
|
43
60
|
}
|
|
44
61
|
CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
|
|
@@ -52,10 +69,24 @@ var CoreLiveGuard;
|
|
|
52
69
|
class LiveGuardGenerateApiKey {
|
|
53
70
|
constructor() {
|
|
54
71
|
this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
|
|
55
|
-
this.path = '/
|
|
72
|
+
this.path = '/message/LiveGuardGenerateApiKey';
|
|
56
73
|
}
|
|
57
74
|
}
|
|
58
75
|
CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
|
|
76
|
+
/**
|
|
77
|
+
* Retreive current chain status for the connected watchtower
|
|
78
|
+
*
|
|
79
|
+
* @export
|
|
80
|
+
* @class LiveGuardGetAuditChains
|
|
81
|
+
* @implements {EvaService}
|
|
82
|
+
*/
|
|
83
|
+
class LiveGuardGetAuditChains {
|
|
84
|
+
constructor() {
|
|
85
|
+
this.name = 'CoreLiveGuard:LiveGuardGetAuditChains';
|
|
86
|
+
this.path = '/message/LiveGuardGetAuditChains';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
|
|
59
90
|
/**
|
|
60
91
|
* Get an authentication token that's valid in the cloud for the current user
|
|
61
92
|
*
|
|
@@ -66,7 +97,7 @@ var CoreLiveGuard;
|
|
|
66
97
|
class LiveGuardGetCloudToken {
|
|
67
98
|
constructor() {
|
|
68
99
|
this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
|
|
69
|
-
this.path = '/
|
|
100
|
+
this.path = '/message/LiveGuardGetCloudToken';
|
|
70
101
|
}
|
|
71
102
|
}
|
|
72
103
|
CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
|
|
@@ -80,7 +111,7 @@ var CoreLiveGuard;
|
|
|
80
111
|
class LiveGuardGetInformation {
|
|
81
112
|
constructor() {
|
|
82
113
|
this.name = 'CoreLiveGuard:LiveGuardGetInformation';
|
|
83
|
-
this.path = '/
|
|
114
|
+
this.path = '/message/LiveGuardGetInformation';
|
|
84
115
|
}
|
|
85
116
|
}
|
|
86
117
|
CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
|
|
@@ -94,7 +125,7 @@ var CoreLiveGuard;
|
|
|
94
125
|
class LiveGuardGetMapping {
|
|
95
126
|
constructor() {
|
|
96
127
|
this.name = 'CoreLiveGuard:LiveGuardGetMapping';
|
|
97
|
-
this.path = '/
|
|
128
|
+
this.path = '/message/LiveGuardGetMapping';
|
|
98
129
|
}
|
|
99
130
|
}
|
|
100
131
|
CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
|
|
@@ -108,7 +139,7 @@ var CoreLiveGuard;
|
|
|
108
139
|
class LiveGuardGetStatus {
|
|
109
140
|
constructor() {
|
|
110
141
|
this.name = 'CoreLiveGuard:LiveGuardGetStatus';
|
|
111
|
-
this.path = '/
|
|
142
|
+
this.path = '/message/LiveGuardGetStatus';
|
|
112
143
|
}
|
|
113
144
|
}
|
|
114
145
|
CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
|
|
@@ -122,7 +153,7 @@ var CoreLiveGuard;
|
|
|
122
153
|
class LiveGuardGetTOTPSecret {
|
|
123
154
|
constructor() {
|
|
124
155
|
this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
|
|
125
|
-
this.path = '/
|
|
156
|
+
this.path = '/message/LiveGuardGetTOTPSecret';
|
|
126
157
|
}
|
|
127
158
|
}
|
|
128
159
|
CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
|
|
@@ -138,7 +169,7 @@ Can only be called by the liveguard user
|
|
|
138
169
|
class LiveGuardGetTokenForUser {
|
|
139
170
|
constructor() {
|
|
140
171
|
this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
|
|
141
|
-
this.path = '/
|
|
172
|
+
this.path = '/message/LiveGuardGetTokenForUser';
|
|
142
173
|
}
|
|
143
174
|
}
|
|
144
175
|
CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
|
|
@@ -152,7 +183,7 @@ Can only be called by the liveguard user
|
|
|
152
183
|
class LiveGuardGetUser {
|
|
153
184
|
constructor() {
|
|
154
185
|
this.name = 'CoreLiveGuard:LiveGuardGetUser';
|
|
155
|
-
this.path = '/
|
|
186
|
+
this.path = '/message/LiveGuardGetUser';
|
|
156
187
|
}
|
|
157
188
|
}
|
|
158
189
|
CoreLiveGuard.LiveGuardGetUser = LiveGuardGetUser;
|
|
@@ -166,7 +197,7 @@ Can only be called by the liveguard user
|
|
|
166
197
|
class LiveGuardPushOrder {
|
|
167
198
|
constructor() {
|
|
168
199
|
this.name = 'CoreLiveGuard:LiveGuardPushOrder';
|
|
169
|
-
this.path = '/
|
|
200
|
+
this.path = '/message/LiveGuardPushOrder';
|
|
170
201
|
}
|
|
171
202
|
}
|
|
172
203
|
CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
|
|
@@ -182,7 +213,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
182
213
|
class LiveGuardSetStatus {
|
|
183
214
|
constructor() {
|
|
184
215
|
this.name = 'CoreLiveGuard:LiveGuardSetStatus';
|
|
185
|
-
this.path = '/
|
|
216
|
+
this.path = '/message/LiveGuardSetStatus';
|
|
186
217
|
}
|
|
187
218
|
}
|
|
188
219
|
CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
|
|
@@ -196,7 +227,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
196
227
|
class LiveGuardSyncCatalogByBlob {
|
|
197
228
|
constructor() {
|
|
198
229
|
this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
|
|
199
|
-
this.path = '/
|
|
230
|
+
this.path = '/message/LiveGuardSyncCatalogByBlob';
|
|
200
231
|
}
|
|
201
232
|
}
|
|
202
233
|
CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
|
|
@@ -210,7 +241,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
210
241
|
class LiveGuardSyncGeneralByBlob {
|
|
211
242
|
constructor() {
|
|
212
243
|
this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
|
|
213
|
-
this.path = '/
|
|
244
|
+
this.path = '/message/LiveGuardSyncGeneralByBlob';
|
|
214
245
|
}
|
|
215
246
|
}
|
|
216
247
|
CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
|
|
@@ -224,7 +255,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
224
255
|
class LiveGuardSyncUsersByBlob {
|
|
225
256
|
constructor() {
|
|
226
257
|
this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
|
|
227
|
-
this.path = '/
|
|
258
|
+
this.path = '/message/LiveGuardSyncUsersByBlob';
|
|
228
259
|
}
|
|
229
260
|
}
|
|
230
261
|
CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
|
|
@@ -238,24 +269,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
238
269
|
class LiveGuardTriggerSync {
|
|
239
270
|
constructor() {
|
|
240
271
|
this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
|
|
241
|
-
this.path = '/
|
|
272
|
+
this.path = '/message/LiveGuardTriggerSync';
|
|
242
273
|
}
|
|
243
274
|
}
|
|
244
275
|
CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
|
|
245
|
-
/**
|
|
246
|
-
* Board the given device in Mender, the device should already have a HardwareID and MenderID, can be requested with GetDeviceByMenderHardwareID
|
|
247
|
-
*
|
|
248
|
-
* @export
|
|
249
|
-
* @class WatchtowerBoardDeviceInMender
|
|
250
|
-
* @implements {EvaService}
|
|
251
|
-
*/
|
|
252
|
-
class WatchtowerBoardDeviceInMender {
|
|
253
|
-
constructor() {
|
|
254
|
-
this.name = 'CoreLiveGuard:WatchtowerBoardDeviceInMender';
|
|
255
|
-
this.path = '/api/core/liveguard/WatchtowerBoardDeviceInMender';
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
CoreLiveGuard.WatchtowerBoardDeviceInMender = WatchtowerBoardDeviceInMender;
|
|
259
276
|
/**
|
|
260
277
|
* Execute a command on a device
|
|
261
278
|
*
|
|
@@ -266,7 +283,7 @@ This should never be used in production environments. This is used to mimick off
|
|
|
266
283
|
class WatchtowerExecuteCommand {
|
|
267
284
|
constructor() {
|
|
268
285
|
this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
|
|
269
|
-
this.path = '/
|
|
286
|
+
this.path = '/message/WatchtowerExecuteCommand';
|
|
270
287
|
}
|
|
271
288
|
}
|
|
272
289
|
CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
|
|
@@ -283,7 +300,7 @@ Returns the MenderID if found in mender or already stored in EVA
|
|
|
283
300
|
class WatchtowerGetDeviceByHardwareID {
|
|
284
301
|
constructor() {
|
|
285
302
|
this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
|
|
286
|
-
this.path = '/
|
|
303
|
+
this.path = '/message/WatchtowerGetDeviceByHardwareID';
|
|
287
304
|
}
|
|
288
305
|
}
|
|
289
306
|
CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
|
|
@@ -297,7 +314,7 @@ Returns the MenderID if found in mender or already stored in EVA
|
|
|
297
314
|
class WatchtowerGetDeviceDetails {
|
|
298
315
|
constructor() {
|
|
299
316
|
this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
|
|
300
|
-
this.path = '/
|
|
317
|
+
this.path = '/message/WatchtowerGetDeviceDetails';
|
|
301
318
|
}
|
|
302
319
|
}
|
|
303
320
|
CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eva-services-core-live-guard.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eva-services-core-live-guard.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,6 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
exports.CoreLiveGuard = void 0;
|
|
8
8
|
(function (CoreLiveGuard) {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new watchtower device
|
|
11
|
+
|
|
12
|
+
To create a device for fallback IO, leave the HardwareID null
|
|
13
|
+
When a HardwareID is set, the device will be boarded in mender and prepared for use.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @class CreateWatchtowerDevice
|
|
17
|
+
* @implements {EvaService}
|
|
18
|
+
*/
|
|
19
|
+
class CreateWatchtowerDevice {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.name = 'CoreLiveGuard:CreateWatchtowerDevice';
|
|
22
|
+
this.path = '/message/CreateWatchtowerDevice';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
|
|
9
26
|
/**
|
|
10
27
|
* TODO: Needs documentation
|
|
11
28
|
*
|
|
@@ -16,7 +33,7 @@
|
|
|
16
33
|
class EVAStatus {
|
|
17
34
|
constructor() {
|
|
18
35
|
this.name = 'CoreLiveGuard:EVAStatus';
|
|
19
|
-
this.path = '/
|
|
36
|
+
this.path = '/message/EVAStatus';
|
|
20
37
|
}
|
|
21
38
|
}
|
|
22
39
|
CoreLiveGuard.EVAStatus = EVAStatus;
|
|
@@ -30,7 +47,7 @@
|
|
|
30
47
|
class GetUserForLiveGuard {
|
|
31
48
|
constructor() {
|
|
32
49
|
this.name = 'CoreLiveGuard:GetUserForLiveGuard';
|
|
33
|
-
this.path = '/
|
|
50
|
+
this.path = '/message/GetUserForLiveGuard';
|
|
34
51
|
}
|
|
35
52
|
}
|
|
36
53
|
CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
|
|
@@ -44,7 +61,7 @@
|
|
|
44
61
|
class ListWatchtowerDevices {
|
|
45
62
|
constructor() {
|
|
46
63
|
this.name = 'CoreLiveGuard:ListWatchtowerDevices';
|
|
47
|
-
this.path = '/
|
|
64
|
+
this.path = '/message/ListWatchtowerDevices';
|
|
48
65
|
}
|
|
49
66
|
}
|
|
50
67
|
CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
|
|
@@ -58,10 +75,24 @@
|
|
|
58
75
|
class LiveGuardGenerateApiKey {
|
|
59
76
|
constructor() {
|
|
60
77
|
this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
|
|
61
|
-
this.path = '/
|
|
78
|
+
this.path = '/message/LiveGuardGenerateApiKey';
|
|
62
79
|
}
|
|
63
80
|
}
|
|
64
81
|
CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
|
|
82
|
+
/**
|
|
83
|
+
* Retreive current chain status for the connected watchtower
|
|
84
|
+
*
|
|
85
|
+
* @export
|
|
86
|
+
* @class LiveGuardGetAuditChains
|
|
87
|
+
* @implements {EvaService}
|
|
88
|
+
*/
|
|
89
|
+
class LiveGuardGetAuditChains {
|
|
90
|
+
constructor() {
|
|
91
|
+
this.name = 'CoreLiveGuard:LiveGuardGetAuditChains';
|
|
92
|
+
this.path = '/message/LiveGuardGetAuditChains';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
|
|
65
96
|
/**
|
|
66
97
|
* Get an authentication token that's valid in the cloud for the current user
|
|
67
98
|
*
|
|
@@ -72,7 +103,7 @@
|
|
|
72
103
|
class LiveGuardGetCloudToken {
|
|
73
104
|
constructor() {
|
|
74
105
|
this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
|
|
75
|
-
this.path = '/
|
|
106
|
+
this.path = '/message/LiveGuardGetCloudToken';
|
|
76
107
|
}
|
|
77
108
|
}
|
|
78
109
|
CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
|
|
@@ -86,7 +117,7 @@
|
|
|
86
117
|
class LiveGuardGetInformation {
|
|
87
118
|
constructor() {
|
|
88
119
|
this.name = 'CoreLiveGuard:LiveGuardGetInformation';
|
|
89
|
-
this.path = '/
|
|
120
|
+
this.path = '/message/LiveGuardGetInformation';
|
|
90
121
|
}
|
|
91
122
|
}
|
|
92
123
|
CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
|
|
@@ -100,7 +131,7 @@
|
|
|
100
131
|
class LiveGuardGetMapping {
|
|
101
132
|
constructor() {
|
|
102
133
|
this.name = 'CoreLiveGuard:LiveGuardGetMapping';
|
|
103
|
-
this.path = '/
|
|
134
|
+
this.path = '/message/LiveGuardGetMapping';
|
|
104
135
|
}
|
|
105
136
|
}
|
|
106
137
|
CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
|
|
@@ -114,7 +145,7 @@
|
|
|
114
145
|
class LiveGuardGetStatus {
|
|
115
146
|
constructor() {
|
|
116
147
|
this.name = 'CoreLiveGuard:LiveGuardGetStatus';
|
|
117
|
-
this.path = '/
|
|
148
|
+
this.path = '/message/LiveGuardGetStatus';
|
|
118
149
|
}
|
|
119
150
|
}
|
|
120
151
|
CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
|
|
@@ -128,7 +159,7 @@
|
|
|
128
159
|
class LiveGuardGetTOTPSecret {
|
|
129
160
|
constructor() {
|
|
130
161
|
this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
|
|
131
|
-
this.path = '/
|
|
162
|
+
this.path = '/message/LiveGuardGetTOTPSecret';
|
|
132
163
|
}
|
|
133
164
|
}
|
|
134
165
|
CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
|
|
@@ -144,7 +175,7 @@
|
|
|
144
175
|
class LiveGuardGetTokenForUser {
|
|
145
176
|
constructor() {
|
|
146
177
|
this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
|
|
147
|
-
this.path = '/
|
|
178
|
+
this.path = '/message/LiveGuardGetTokenForUser';
|
|
148
179
|
}
|
|
149
180
|
}
|
|
150
181
|
CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
|
|
@@ -158,7 +189,7 @@
|
|
|
158
189
|
class LiveGuardGetUser {
|
|
159
190
|
constructor() {
|
|
160
191
|
this.name = 'CoreLiveGuard:LiveGuardGetUser';
|
|
161
|
-
this.path = '/
|
|
192
|
+
this.path = '/message/LiveGuardGetUser';
|
|
162
193
|
}
|
|
163
194
|
}
|
|
164
195
|
CoreLiveGuard.LiveGuardGetUser = LiveGuardGetUser;
|
|
@@ -172,7 +203,7 @@
|
|
|
172
203
|
class LiveGuardPushOrder {
|
|
173
204
|
constructor() {
|
|
174
205
|
this.name = 'CoreLiveGuard:LiveGuardPushOrder';
|
|
175
|
-
this.path = '/
|
|
206
|
+
this.path = '/message/LiveGuardPushOrder';
|
|
176
207
|
}
|
|
177
208
|
}
|
|
178
209
|
CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
|
|
@@ -188,7 +219,7 @@
|
|
|
188
219
|
class LiveGuardSetStatus {
|
|
189
220
|
constructor() {
|
|
190
221
|
this.name = 'CoreLiveGuard:LiveGuardSetStatus';
|
|
191
|
-
this.path = '/
|
|
222
|
+
this.path = '/message/LiveGuardSetStatus';
|
|
192
223
|
}
|
|
193
224
|
}
|
|
194
225
|
CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
|
|
@@ -202,7 +233,7 @@
|
|
|
202
233
|
class LiveGuardSyncCatalogByBlob {
|
|
203
234
|
constructor() {
|
|
204
235
|
this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
|
|
205
|
-
this.path = '/
|
|
236
|
+
this.path = '/message/LiveGuardSyncCatalogByBlob';
|
|
206
237
|
}
|
|
207
238
|
}
|
|
208
239
|
CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
|
|
@@ -216,7 +247,7 @@
|
|
|
216
247
|
class LiveGuardSyncGeneralByBlob {
|
|
217
248
|
constructor() {
|
|
218
249
|
this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
|
|
219
|
-
this.path = '/
|
|
250
|
+
this.path = '/message/LiveGuardSyncGeneralByBlob';
|
|
220
251
|
}
|
|
221
252
|
}
|
|
222
253
|
CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
|
|
@@ -230,7 +261,7 @@
|
|
|
230
261
|
class LiveGuardSyncUsersByBlob {
|
|
231
262
|
constructor() {
|
|
232
263
|
this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
|
|
233
|
-
this.path = '/
|
|
264
|
+
this.path = '/message/LiveGuardSyncUsersByBlob';
|
|
234
265
|
}
|
|
235
266
|
}
|
|
236
267
|
CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
|
|
@@ -244,24 +275,10 @@
|
|
|
244
275
|
class LiveGuardTriggerSync {
|
|
245
276
|
constructor() {
|
|
246
277
|
this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
|
|
247
|
-
this.path = '/
|
|
278
|
+
this.path = '/message/LiveGuardTriggerSync';
|
|
248
279
|
}
|
|
249
280
|
}
|
|
250
281
|
CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
|
|
251
|
-
/**
|
|
252
|
-
* Board the given device in Mender, the device should already have a HardwareID and MenderID, can be requested with GetDeviceByMenderHardwareID
|
|
253
|
-
*
|
|
254
|
-
* @export
|
|
255
|
-
* @class WatchtowerBoardDeviceInMender
|
|
256
|
-
* @implements {EvaService}
|
|
257
|
-
*/
|
|
258
|
-
class WatchtowerBoardDeviceInMender {
|
|
259
|
-
constructor() {
|
|
260
|
-
this.name = 'CoreLiveGuard:WatchtowerBoardDeviceInMender';
|
|
261
|
-
this.path = '/api/core/liveguard/WatchtowerBoardDeviceInMender';
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
CoreLiveGuard.WatchtowerBoardDeviceInMender = WatchtowerBoardDeviceInMender;
|
|
265
282
|
/**
|
|
266
283
|
* Execute a command on a device
|
|
267
284
|
*
|
|
@@ -272,7 +289,7 @@
|
|
|
272
289
|
class WatchtowerExecuteCommand {
|
|
273
290
|
constructor() {
|
|
274
291
|
this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
|
|
275
|
-
this.path = '/
|
|
292
|
+
this.path = '/message/WatchtowerExecuteCommand';
|
|
276
293
|
}
|
|
277
294
|
}
|
|
278
295
|
CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
|
|
@@ -289,7 +306,7 @@
|
|
|
289
306
|
class WatchtowerGetDeviceByHardwareID {
|
|
290
307
|
constructor() {
|
|
291
308
|
this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
|
|
292
|
-
this.path = '/
|
|
309
|
+
this.path = '/message/WatchtowerGetDeviceByHardwareID';
|
|
293
310
|
}
|
|
294
311
|
}
|
|
295
312
|
CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
|
|
@@ -303,7 +320,7 @@
|
|
|
303
320
|
class WatchtowerGetDeviceDetails {
|
|
304
321
|
constructor() {
|
|
305
322
|
this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
|
|
306
|
-
this.path = '/
|
|
323
|
+
this.path = '/message/WatchtowerGetDeviceDetails';
|
|
307
324
|
}
|
|
308
325
|
}
|
|
309
326
|
CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eva-services-core-live-guard.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eva-services-core-live-guard.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springtree/eva-services-core-live-guard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "The EVA service repository for EVA.Core.LiveGuard",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "SpringTree <info@springtree.nl>",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@springtree/eva-services-core": "^1.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "8c2f19a98f8713ade25a33a422b2334851d04fc6"
|
|
37
37
|
}
|