@springtree/eva-services-core-live-guard 1.9.0 → 2.0.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 +26 -0
- package/lib/EVA.Core.LiveGuard.Services.d.ts.map +1 -1
- package/lib/EVA.Core.LiveGuard.Services.js +116 -88
- package/lib/EVA.Core.LiveGuard.Services.js.map +1 -1
- package/package.json +7 -6
- package/lib/eva-services-core-live-guard.es5.js +0 -324
- package/lib/eva-services-core-live-guard.es5.js.map +0 -1
- package/lib/eva-services-core-live-guard.umd.js +0 -332
- package/lib/eva-services-core-live-guard.umd.js.map +0 -1
|
@@ -55,6 +55,19 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
55
55
|
request?: EVA.Core.LiveGuard.ListWatchtowerDevices;
|
|
56
56
|
response?: EVA.Core.LiveGuard.ListWatchtowerDevicesResponse;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Execute a command on a device
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
* @class LiveGuardExecuteTask
|
|
63
|
+
* @implements {EvaService}
|
|
64
|
+
*/
|
|
65
|
+
class LiveGuardExecuteTask implements IEvaServiceDefinition {
|
|
66
|
+
name: string;
|
|
67
|
+
path: string;
|
|
68
|
+
request?: EVA.Core.LiveGuard.LiveGuardExecuteTask;
|
|
69
|
+
response?: EVA.Core.EmptyResponseMessage;
|
|
70
|
+
}
|
|
58
71
|
/**
|
|
59
72
|
* TODO: Needs documentation
|
|
60
73
|
*
|
|
@@ -161,6 +174,19 @@ Can only be called by the liveguard user
|
|
|
161
174
|
request?: EVA.Core.LiveGuard.LiveGuardGetTokenForUser;
|
|
162
175
|
response?: EVA.Core.LiveGuard.LiveGuardGetTokenForUserResponse;
|
|
163
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Push metrics of the watchtower device to the cloud.
|
|
179
|
+
*
|
|
180
|
+
* @export
|
|
181
|
+
* @class LiveGuardPushMetrics
|
|
182
|
+
* @implements {EvaService}
|
|
183
|
+
*/
|
|
184
|
+
class LiveGuardPushMetrics implements IEvaServiceDefinition {
|
|
185
|
+
name: string;
|
|
186
|
+
path: string;
|
|
187
|
+
request?: EVA.Core.LiveGuard.LiveGuardPushMetrics;
|
|
188
|
+
response?: EVA.Core.EmptyResponseMessage;
|
|
189
|
+
}
|
|
164
190
|
/**
|
|
165
191
|
* Accepts an Order pushed from a LiveGuard instance
|
|
166
192
|
*
|
|
@@ -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;;;;;;;;;OASG;IACH,MAAa,sBAAuB,YAAW,qBAAqB;QAClE,IAAI,SAA0C;QAC9C,IAAI,SAAqC;QACzC,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC;QACpD,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC;KAC9D;IAED;;;;;;OAMG;IACH,MAAa,SAAU,YAAW,qBAAqB;QACrD,IAAI,SAA6B;QACjC,IAAI,SAAwB;QAC5B,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;QACvC,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC;KACjD;IAED;;;;;;OAMG;IACH,MAAa,mBAAoB,YAAW,qBAAqB;QAC/D,IAAI,SAAuC;QAC3C,IAAI,SAAkC;QACtC,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC;QACjD,QAAQ,CAAC,EAAE,GAAG,CAAC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MG;IACH,MAAa,mCAAoC,YAAW,qBAAqB;QAC/E,IAAI,SAAuD;QAC3D,IAAI,SAAkD;QACtD,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,mCAAmC,CAAC;QACjE,QAAQ,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC;KAC1C;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"}
|
|
@@ -11,10 +11,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
11
11
|
* @implements {EvaService}
|
|
12
12
|
*/
|
|
13
13
|
class CreateWatchtowerDevice {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
name = 'CoreLiveGuard:CreateWatchtowerDevice';
|
|
15
|
+
path = '/message/CreateWatchtowerDevice';
|
|
16
|
+
request;
|
|
17
|
+
response;
|
|
18
18
|
}
|
|
19
19
|
CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
|
|
20
20
|
/**
|
|
@@ -25,10 +25,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
25
25
|
* @implements {EvaService}
|
|
26
26
|
*/
|
|
27
27
|
class EVAStatus {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
name = 'CoreLiveGuard:EVAStatus';
|
|
29
|
+
path = '/message/EVAStatus';
|
|
30
|
+
request;
|
|
31
|
+
response;
|
|
32
32
|
}
|
|
33
33
|
CoreLiveGuard.EVAStatus = EVAStatus;
|
|
34
34
|
/**
|
|
@@ -39,10 +39,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
39
39
|
* @implements {EvaService}
|
|
40
40
|
*/
|
|
41
41
|
class GetUserForLiveGuard {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
name = 'CoreLiveGuard:GetUserForLiveGuard';
|
|
43
|
+
path = '/message/GetUserForLiveGuard';
|
|
44
|
+
request;
|
|
45
|
+
response;
|
|
46
46
|
}
|
|
47
47
|
CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
|
|
48
48
|
/**
|
|
@@ -53,12 +53,26 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
53
53
|
* @implements {EvaService}
|
|
54
54
|
*/
|
|
55
55
|
class ListWatchtowerDevices {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
name = 'CoreLiveGuard:ListWatchtowerDevices';
|
|
57
|
+
path = '/message/ListWatchtowerDevices';
|
|
58
|
+
request;
|
|
59
|
+
response;
|
|
60
60
|
}
|
|
61
61
|
CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
|
|
62
|
+
/**
|
|
63
|
+
* Execute a command on a device
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @class LiveGuardExecuteTask
|
|
67
|
+
* @implements {EvaService}
|
|
68
|
+
*/
|
|
69
|
+
class LiveGuardExecuteTask {
|
|
70
|
+
name = 'CoreLiveGuard:LiveGuardExecuteTask';
|
|
71
|
+
path = '/message/LiveGuardExecuteTask';
|
|
72
|
+
request;
|
|
73
|
+
response;
|
|
74
|
+
}
|
|
75
|
+
CoreLiveGuard.LiveGuardExecuteTask = LiveGuardExecuteTask;
|
|
62
76
|
/**
|
|
63
77
|
* TODO: Needs documentation
|
|
64
78
|
*
|
|
@@ -67,10 +81,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
67
81
|
* @implements {EvaService}
|
|
68
82
|
*/
|
|
69
83
|
class LiveGuardGenerateApiKey {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
84
|
+
name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
|
|
85
|
+
path = '/message/LiveGuardGenerateApiKey';
|
|
86
|
+
request;
|
|
87
|
+
response;
|
|
74
88
|
}
|
|
75
89
|
CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
|
|
76
90
|
/**
|
|
@@ -81,10 +95,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
81
95
|
* @implements {EvaService}
|
|
82
96
|
*/
|
|
83
97
|
class LiveGuardGetAuditChains {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
98
|
+
name = 'CoreLiveGuard:LiveGuardGetAuditChains';
|
|
99
|
+
path = '/message/LiveGuardGetAuditChains';
|
|
100
|
+
request;
|
|
101
|
+
response;
|
|
88
102
|
}
|
|
89
103
|
CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
|
|
90
104
|
/**
|
|
@@ -95,10 +109,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
95
109
|
* @implements {EvaService}
|
|
96
110
|
*/
|
|
97
111
|
class LiveGuardGetCloudToken {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
name = 'CoreLiveGuard:LiveGuardGetCloudToken';
|
|
113
|
+
path = '/message/LiveGuardGetCloudToken';
|
|
114
|
+
request;
|
|
115
|
+
response;
|
|
102
116
|
}
|
|
103
117
|
CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
|
|
104
118
|
/**
|
|
@@ -109,10 +123,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
109
123
|
* @implements {EvaService}
|
|
110
124
|
*/
|
|
111
125
|
class LiveGuardGetInformation {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
126
|
+
name = 'CoreLiveGuard:LiveGuardGetInformation';
|
|
127
|
+
path = '/message/LiveGuardGetInformation';
|
|
128
|
+
request;
|
|
129
|
+
response;
|
|
116
130
|
}
|
|
117
131
|
CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
|
|
118
132
|
/**
|
|
@@ -123,10 +137,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
123
137
|
* @implements {EvaService}
|
|
124
138
|
*/
|
|
125
139
|
class LiveGuardGetMapping {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
140
|
+
name = 'CoreLiveGuard:LiveGuardGetMapping';
|
|
141
|
+
path = '/message/LiveGuardGetMapping';
|
|
142
|
+
request;
|
|
143
|
+
response;
|
|
130
144
|
}
|
|
131
145
|
CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
|
|
132
146
|
/**
|
|
@@ -137,10 +151,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
137
151
|
* @implements {EvaService}
|
|
138
152
|
*/
|
|
139
153
|
class LiveGuardGetStatus {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
154
|
+
name = 'CoreLiveGuard:LiveGuardGetStatus';
|
|
155
|
+
path = '/message/LiveGuardGetStatus';
|
|
156
|
+
request;
|
|
157
|
+
response;
|
|
144
158
|
}
|
|
145
159
|
CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
|
|
146
160
|
/**
|
|
@@ -151,10 +165,10 @@ When a HardwareID is set, the device will be boarded in mender and prepared for
|
|
|
151
165
|
* @implements {EvaService}
|
|
152
166
|
*/
|
|
153
167
|
class LiveGuardGetTOTPSecret {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
168
|
+
name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
|
|
169
|
+
path = '/message/LiveGuardGetTOTPSecret';
|
|
170
|
+
request;
|
|
171
|
+
response;
|
|
158
172
|
}
|
|
159
173
|
CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
|
|
160
174
|
/**
|
|
@@ -167,12 +181,26 @@ Can only be called by the liveguard user
|
|
|
167
181
|
* @implements {EvaService}
|
|
168
182
|
*/
|
|
169
183
|
class LiveGuardGetTokenForUser {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
184
|
+
name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
|
|
185
|
+
path = '/message/LiveGuardGetTokenForUser';
|
|
186
|
+
request;
|
|
187
|
+
response;
|
|
174
188
|
}
|
|
175
189
|
CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
|
|
190
|
+
/**
|
|
191
|
+
* Push metrics of the watchtower device to the cloud.
|
|
192
|
+
*
|
|
193
|
+
* @export
|
|
194
|
+
* @class LiveGuardPushMetrics
|
|
195
|
+
* @implements {EvaService}
|
|
196
|
+
*/
|
|
197
|
+
class LiveGuardPushMetrics {
|
|
198
|
+
name = 'CoreLiveGuard:LiveGuardPushMetrics';
|
|
199
|
+
path = '/message/LiveGuardPushMetrics';
|
|
200
|
+
request;
|
|
201
|
+
response;
|
|
202
|
+
}
|
|
203
|
+
CoreLiveGuard.LiveGuardPushMetrics = LiveGuardPushMetrics;
|
|
176
204
|
/**
|
|
177
205
|
* Accepts an Order pushed from a LiveGuard instance
|
|
178
206
|
*
|
|
@@ -181,10 +209,10 @@ Can only be called by the liveguard user
|
|
|
181
209
|
* @implements {EvaService}
|
|
182
210
|
*/
|
|
183
211
|
class LiveGuardPushOrder {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
212
|
+
name = 'CoreLiveGuard:LiveGuardPushOrder';
|
|
213
|
+
path = '/message/LiveGuardPushOrder';
|
|
214
|
+
request;
|
|
215
|
+
response;
|
|
188
216
|
}
|
|
189
217
|
CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
|
|
190
218
|
/**
|
|
@@ -197,10 +225,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
197
225
|
* @implements {EvaService}
|
|
198
226
|
*/
|
|
199
227
|
class LiveGuardSetStatus {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
228
|
+
name = 'CoreLiveGuard:LiveGuardSetStatus';
|
|
229
|
+
path = '/message/LiveGuardSetStatus';
|
|
230
|
+
request;
|
|
231
|
+
response;
|
|
204
232
|
}
|
|
205
233
|
CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
|
|
206
234
|
/**
|
|
@@ -211,10 +239,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
211
239
|
* @implements {EvaService}
|
|
212
240
|
*/
|
|
213
241
|
class LiveGuardSyncCatalogByBlob {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
242
|
+
name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
|
|
243
|
+
path = '/message/LiveGuardSyncCatalogByBlob';
|
|
244
|
+
request;
|
|
245
|
+
response;
|
|
218
246
|
}
|
|
219
247
|
CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
|
|
220
248
|
/**
|
|
@@ -225,10 +253,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
225
253
|
* @implements {EvaService}
|
|
226
254
|
*/
|
|
227
255
|
class LiveGuardSyncGeneralByBlob {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
256
|
+
name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
|
|
257
|
+
path = '/message/LiveGuardSyncGeneralByBlob';
|
|
258
|
+
request;
|
|
259
|
+
response;
|
|
232
260
|
}
|
|
233
261
|
CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
|
|
234
262
|
/**
|
|
@@ -239,10 +267,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
239
267
|
* @implements {EvaService}
|
|
240
268
|
*/
|
|
241
269
|
class LiveGuardSyncUsersByBlob {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
270
|
+
name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
|
|
271
|
+
path = '/message/LiveGuardSyncUsersByBlob';
|
|
272
|
+
request;
|
|
273
|
+
response;
|
|
246
274
|
}
|
|
247
275
|
CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
|
|
248
276
|
/**
|
|
@@ -253,10 +281,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
253
281
|
* @implements {EvaService}
|
|
254
282
|
*/
|
|
255
283
|
class LiveGuardTriggerSync {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
284
|
+
name = 'CoreLiveGuard:LiveGuardTriggerSync';
|
|
285
|
+
path = '/message/LiveGuardTriggerSync';
|
|
286
|
+
request;
|
|
287
|
+
response;
|
|
260
288
|
}
|
|
261
289
|
CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
|
|
262
290
|
/**
|
|
@@ -267,10 +295,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
267
295
|
* @implements {EvaService}
|
|
268
296
|
*/
|
|
269
297
|
class PushWatchtowerConfigurationToDevice {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
298
|
+
name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
|
|
299
|
+
path = '/message/PushWatchtowerConfigurationToDevice';
|
|
300
|
+
request;
|
|
301
|
+
response;
|
|
274
302
|
}
|
|
275
303
|
CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
|
|
276
304
|
/**
|
|
@@ -281,10 +309,10 @@ This should never be used in production environments. This is used to mimick off
|
|
|
281
309
|
* @implements {EvaService}
|
|
282
310
|
*/
|
|
283
311
|
class WatchtowerExecuteCommand {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
312
|
+
name = 'CoreLiveGuard:WatchtowerExecuteCommand';
|
|
313
|
+
path = '/message/WatchtowerExecuteCommand';
|
|
314
|
+
request;
|
|
315
|
+
response;
|
|
288
316
|
}
|
|
289
317
|
CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
|
|
290
318
|
/**
|
|
@@ -298,10 +326,10 @@ Returns the MenderID if found in mender or already stored in EVA
|
|
|
298
326
|
* @implements {EvaService}
|
|
299
327
|
*/
|
|
300
328
|
class WatchtowerGetDeviceByHardwareID {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
329
|
+
name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
|
|
330
|
+
path = '/message/WatchtowerGetDeviceByHardwareID';
|
|
331
|
+
request;
|
|
332
|
+
response;
|
|
305
333
|
}
|
|
306
334
|
CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
|
|
307
335
|
/**
|
|
@@ -312,10 +340,10 @@ Returns the MenderID if found in mender or already stored in EVA
|
|
|
312
340
|
* @implements {EvaService}
|
|
313
341
|
*/
|
|
314
342
|
class WatchtowerGetDeviceDetails {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
343
|
+
name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
|
|
344
|
+
path = '/message/WatchtowerGetDeviceDetails';
|
|
345
|
+
request;
|
|
346
|
+
response;
|
|
319
347
|
}
|
|
320
348
|
CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
|
|
321
349
|
})(CoreLiveGuard || (CoreLiveGuard = {}));
|
|
@@ -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,CA2V7B;AA3VD,WAAiB,aAAa;IAE5B;;;;;;;;;OASG;IACH,MAAa,sBAAsB;QACjC,IAAI,GAAG,sCAAsC,CAAC;QAC9C,IAAI,GAAG,iCAAiC,CAAC;QACzC,OAAO,CAA6C;QACpD,QAAQ,CAAqD;KAC9D;IALY,oCAAsB,yBAKlC,CAAA;IAED;;;;;;OAMG;IACH,MAAa,SAAS;QACpB,IAAI,GAAG,yBAAyB,CAAC;QACjC,IAAI,GAAG,oBAAoB,CAAC;QAC5B,OAAO,CAAgC;QACvC,QAAQ,CAAwC;KACjD;IALY,uBAAS,YAKrB,CAAA;IAED;;;;;;OAMG;IACH,MAAa,mBAAmB;QAC9B,IAAI,GAAG,mCAAmC,CAAC;QAC3C,IAAI,GAAG,8BAA8B,CAAC;QACtC,OAAO,CAA0C;QACjD,QAAQ,CAAkD;KAC3D;IALY,iCAAmB,sBAK/B,CAAA;IAED;;;;;;OAMG;IACH,MAAa,qBAAqB;QAChC,IAAI,GAAG,qCAAqC,CAAC;QAC7C,IAAI,GAAG,g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CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springtree/eva-services-core-live-guard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "The EVA service repository for EVA.Core.LiveGuard",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "SpringTree <info@springtree.nl>",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
|
-
"main": "lib/eva-services-core-live-guard.
|
|
8
|
+
"main": "lib/eva-services-core-live-guard.js",
|
|
9
9
|
"directories": {
|
|
10
10
|
"lib": "lib",
|
|
11
11
|
"test": "__tests__"
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/springtreesolutions/eva-sdk-repo#readme",
|
|
30
30
|
"typings": "lib/eva-services-core-live-guard.d.ts",
|
|
31
|
-
"module": "lib/eva-services-core-live-guard.
|
|
31
|
+
"module": "lib/eva-services-core-live-guard.js",
|
|
32
|
+
"type": "module",
|
|
32
33
|
"private": false,
|
|
33
|
-
"
|
|
34
|
-
"@springtree/eva-services-core": "^
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@springtree/eva-services-core": "^2.0.0"
|
|
35
36
|
},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "e5a13ab2e6c139966aa0907cff56676c3b8753dd"
|
|
37
38
|
}
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
var CoreLiveGuard;
|
|
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;
|
|
20
|
-
/**
|
|
21
|
-
* TODO: Needs documentation
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
* @class EVAStatus
|
|
25
|
-
* @implements {EvaService}
|
|
26
|
-
*/
|
|
27
|
-
class EVAStatus {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.name = 'CoreLiveGuard:EVAStatus';
|
|
30
|
-
this.path = '/message/EVAStatus';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
CoreLiveGuard.EVAStatus = EVAStatus;
|
|
34
|
-
/**
|
|
35
|
-
* Get user information to sync to LiveGuard
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @class GetUserForLiveGuard
|
|
39
|
-
* @implements {EvaService}
|
|
40
|
-
*/
|
|
41
|
-
class GetUserForLiveGuard {
|
|
42
|
-
constructor() {
|
|
43
|
-
this.name = 'CoreLiveGuard:GetUserForLiveGuard';
|
|
44
|
-
this.path = '/message/GetUserForLiveGuard';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
|
|
48
|
-
/**
|
|
49
|
-
* List the configured watchtower devices with their status
|
|
50
|
-
*
|
|
51
|
-
* @export
|
|
52
|
-
* @class ListWatchtowerDevices
|
|
53
|
-
* @implements {EvaService}
|
|
54
|
-
*/
|
|
55
|
-
class ListWatchtowerDevices {
|
|
56
|
-
constructor() {
|
|
57
|
-
this.name = 'CoreLiveGuard:ListWatchtowerDevices';
|
|
58
|
-
this.path = '/message/ListWatchtowerDevices';
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
|
|
62
|
-
/**
|
|
63
|
-
* TODO: Needs documentation
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
* @class LiveGuardGenerateApiKey
|
|
67
|
-
* @implements {EvaService}
|
|
68
|
-
*/
|
|
69
|
-
class LiveGuardGenerateApiKey {
|
|
70
|
-
constructor() {
|
|
71
|
-
this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
|
|
72
|
-
this.path = '/message/LiveGuardGenerateApiKey';
|
|
73
|
-
}
|
|
74
|
-
}
|
|
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;
|
|
90
|
-
/**
|
|
91
|
-
* Get an authentication token that's valid in the cloud for the current user
|
|
92
|
-
*
|
|
93
|
-
* @export
|
|
94
|
-
* @class LiveGuardGetCloudToken
|
|
95
|
-
* @implements {EvaService}
|
|
96
|
-
*/
|
|
97
|
-
class LiveGuardGetCloudToken {
|
|
98
|
-
constructor() {
|
|
99
|
-
this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
|
|
100
|
-
this.path = '/message/LiveGuardGetCloudToken';
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
|
|
104
|
-
/**
|
|
105
|
-
* Returns some basic information about the current state of the liveGuard
|
|
106
|
-
*
|
|
107
|
-
* @export
|
|
108
|
-
* @class LiveGuardGetInformation
|
|
109
|
-
* @implements {EvaService}
|
|
110
|
-
*/
|
|
111
|
-
class LiveGuardGetInformation {
|
|
112
|
-
constructor() {
|
|
113
|
-
this.name = 'CoreLiveGuard:LiveGuardGetInformation';
|
|
114
|
-
this.path = '/message/LiveGuardGetInformation';
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
|
|
118
|
-
/**
|
|
119
|
-
* Returns id mapping for cloud vs liveguard entities
|
|
120
|
-
*
|
|
121
|
-
* @export
|
|
122
|
-
* @class LiveGuardGetMapping
|
|
123
|
-
* @implements {EvaService}
|
|
124
|
-
*/
|
|
125
|
-
class LiveGuardGetMapping {
|
|
126
|
-
constructor() {
|
|
127
|
-
this.name = 'CoreLiveGuard:LiveGuardGetMapping';
|
|
128
|
-
this.path = '/message/LiveGuardGetMapping';
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
|
|
132
|
-
/**
|
|
133
|
-
* This service returns the operational flags for a liveguard instance.
|
|
134
|
-
*
|
|
135
|
-
* @export
|
|
136
|
-
* @class LiveGuardGetStatus
|
|
137
|
-
* @implements {EvaService}
|
|
138
|
-
*/
|
|
139
|
-
class LiveGuardGetStatus {
|
|
140
|
-
constructor() {
|
|
141
|
-
this.name = 'CoreLiveGuard:LiveGuardGetStatus';
|
|
142
|
-
this.path = '/message/LiveGuardGetStatus';
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
|
|
146
|
-
/**
|
|
147
|
-
* Retreive current secret for TOTP token usage
|
|
148
|
-
*
|
|
149
|
-
* @export
|
|
150
|
-
* @class LiveGuardGetTOTPSecret
|
|
151
|
-
* @implements {EvaService}
|
|
152
|
-
*/
|
|
153
|
-
class LiveGuardGetTOTPSecret {
|
|
154
|
-
constructor() {
|
|
155
|
-
this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
|
|
156
|
-
this.path = '/message/LiveGuardGetTOTPSecret';
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
|
|
160
|
-
/**
|
|
161
|
-
* Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
|
|
162
|
-
|
|
163
|
-
Can only be called by the liveguard user
|
|
164
|
-
*
|
|
165
|
-
* @export
|
|
166
|
-
* @class LiveGuardGetTokenForUser
|
|
167
|
-
* @implements {EvaService}
|
|
168
|
-
*/
|
|
169
|
-
class LiveGuardGetTokenForUser {
|
|
170
|
-
constructor() {
|
|
171
|
-
this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
|
|
172
|
-
this.path = '/message/LiveGuardGetTokenForUser';
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
|
|
176
|
-
/**
|
|
177
|
-
* Accepts an Order pushed from a LiveGuard instance
|
|
178
|
-
*
|
|
179
|
-
* @export
|
|
180
|
-
* @class LiveGuardPushOrder
|
|
181
|
-
* @implements {EvaService}
|
|
182
|
-
*/
|
|
183
|
-
class LiveGuardPushOrder {
|
|
184
|
-
constructor() {
|
|
185
|
-
this.name = 'CoreLiveGuard:LiveGuardPushOrder';
|
|
186
|
-
this.path = '/message/LiveGuardPushOrder';
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
|
|
190
|
-
/**
|
|
191
|
-
* This service overrides the operational flags for a liveguard instance.
|
|
192
|
-
|
|
193
|
-
This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
|
|
194
|
-
*
|
|
195
|
-
* @export
|
|
196
|
-
* @class LiveGuardSetStatus
|
|
197
|
-
* @implements {EvaService}
|
|
198
|
-
*/
|
|
199
|
-
class LiveGuardSetStatus {
|
|
200
|
-
constructor() {
|
|
201
|
-
this.name = 'CoreLiveGuard:LiveGuardSetStatus';
|
|
202
|
-
this.path = '/message/LiveGuardSetStatus';
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
|
|
206
|
-
/**
|
|
207
|
-
* TODO: Needs documentation
|
|
208
|
-
*
|
|
209
|
-
* @export
|
|
210
|
-
* @class LiveGuardSyncCatalogByBlob
|
|
211
|
-
* @implements {EvaService}
|
|
212
|
-
*/
|
|
213
|
-
class LiveGuardSyncCatalogByBlob {
|
|
214
|
-
constructor() {
|
|
215
|
-
this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
|
|
216
|
-
this.path = '/message/LiveGuardSyncCatalogByBlob';
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
|
|
220
|
-
/**
|
|
221
|
-
* TODO: Needs documentation
|
|
222
|
-
*
|
|
223
|
-
* @export
|
|
224
|
-
* @class LiveGuardSyncGeneralByBlob
|
|
225
|
-
* @implements {EvaService}
|
|
226
|
-
*/
|
|
227
|
-
class LiveGuardSyncGeneralByBlob {
|
|
228
|
-
constructor() {
|
|
229
|
-
this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
|
|
230
|
-
this.path = '/message/LiveGuardSyncGeneralByBlob';
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
|
|
234
|
-
/**
|
|
235
|
-
* TODO: Needs documentation
|
|
236
|
-
*
|
|
237
|
-
* @export
|
|
238
|
-
* @class LiveGuardSyncUsersByBlob
|
|
239
|
-
* @implements {EvaService}
|
|
240
|
-
*/
|
|
241
|
-
class LiveGuardSyncUsersByBlob {
|
|
242
|
-
constructor() {
|
|
243
|
-
this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
|
|
244
|
-
this.path = '/message/LiveGuardSyncUsersByBlob';
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
|
|
248
|
-
/**
|
|
249
|
-
* Trigger a full sync on a liveguard instance, this has major performance impact for a while
|
|
250
|
-
*
|
|
251
|
-
* @export
|
|
252
|
-
* @class LiveGuardTriggerSync
|
|
253
|
-
* @implements {EvaService}
|
|
254
|
-
*/
|
|
255
|
-
class LiveGuardTriggerSync {
|
|
256
|
-
constructor() {
|
|
257
|
-
this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
|
|
258
|
-
this.path = '/message/LiveGuardTriggerSync';
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
|
|
262
|
-
/**
|
|
263
|
-
* Push the current configuration for the given device to mender
|
|
264
|
-
*
|
|
265
|
-
* @export
|
|
266
|
-
* @class PushWatchtowerConfigurationToDevice
|
|
267
|
-
* @implements {EvaService}
|
|
268
|
-
*/
|
|
269
|
-
class PushWatchtowerConfigurationToDevice {
|
|
270
|
-
constructor() {
|
|
271
|
-
this.name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
|
|
272
|
-
this.path = '/message/PushWatchtowerConfigurationToDevice';
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
|
|
276
|
-
/**
|
|
277
|
-
* Execute a command on a device
|
|
278
|
-
*
|
|
279
|
-
* @export
|
|
280
|
-
* @class WatchtowerExecuteCommand
|
|
281
|
-
* @implements {EvaService}
|
|
282
|
-
*/
|
|
283
|
-
class WatchtowerExecuteCommand {
|
|
284
|
-
constructor() {
|
|
285
|
-
this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
|
|
286
|
-
this.path = '/message/WatchtowerExecuteCommand';
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
|
|
290
|
-
/**
|
|
291
|
-
* Try to find the device by the HardwareID in mender
|
|
292
|
-
|
|
293
|
-
Returns the DeviceID if already existing in EVA
|
|
294
|
-
Returns the MenderID if found in mender or already stored in EVA
|
|
295
|
-
*
|
|
296
|
-
* @export
|
|
297
|
-
* @class WatchtowerGetDeviceByHardwareID
|
|
298
|
-
* @implements {EvaService}
|
|
299
|
-
*/
|
|
300
|
-
class WatchtowerGetDeviceByHardwareID {
|
|
301
|
-
constructor() {
|
|
302
|
-
this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
|
|
303
|
-
this.path = '/message/WatchtowerGetDeviceByHardwareID';
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
|
|
307
|
-
/**
|
|
308
|
-
* Get details about the given device.
|
|
309
|
-
*
|
|
310
|
-
* @export
|
|
311
|
-
* @class WatchtowerGetDeviceDetails
|
|
312
|
-
* @implements {EvaService}
|
|
313
|
-
*/
|
|
314
|
-
class WatchtowerGetDeviceDetails {
|
|
315
|
-
constructor() {
|
|
316
|
-
this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
|
|
317
|
-
this.path = '/message/WatchtowerGetDeviceDetails';
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
|
|
321
|
-
})(CoreLiveGuard || (CoreLiveGuard = {}));
|
|
322
|
-
|
|
323
|
-
export { CoreLiveGuard };
|
|
324
|
-
//# sourceMappingURL=eva-services-core-live-guard.es5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eva-services-core-live-guard.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.evaServicesCoreLiveGuard = {}));
|
|
5
|
-
})(this, (function (exports) { 'use strict';
|
|
6
|
-
|
|
7
|
-
exports.CoreLiveGuard = void 0;
|
|
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;
|
|
26
|
-
/**
|
|
27
|
-
* TODO: Needs documentation
|
|
28
|
-
*
|
|
29
|
-
* @export
|
|
30
|
-
* @class EVAStatus
|
|
31
|
-
* @implements {EvaService}
|
|
32
|
-
*/
|
|
33
|
-
class EVAStatus {
|
|
34
|
-
constructor() {
|
|
35
|
-
this.name = 'CoreLiveGuard:EVAStatus';
|
|
36
|
-
this.path = '/message/EVAStatus';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
CoreLiveGuard.EVAStatus = EVAStatus;
|
|
40
|
-
/**
|
|
41
|
-
* Get user information to sync to LiveGuard
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
* @class GetUserForLiveGuard
|
|
45
|
-
* @implements {EvaService}
|
|
46
|
-
*/
|
|
47
|
-
class GetUserForLiveGuard {
|
|
48
|
-
constructor() {
|
|
49
|
-
this.name = 'CoreLiveGuard:GetUserForLiveGuard';
|
|
50
|
-
this.path = '/message/GetUserForLiveGuard';
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
|
|
54
|
-
/**
|
|
55
|
-
* List the configured watchtower devices with their status
|
|
56
|
-
*
|
|
57
|
-
* @export
|
|
58
|
-
* @class ListWatchtowerDevices
|
|
59
|
-
* @implements {EvaService}
|
|
60
|
-
*/
|
|
61
|
-
class ListWatchtowerDevices {
|
|
62
|
-
constructor() {
|
|
63
|
-
this.name = 'CoreLiveGuard:ListWatchtowerDevices';
|
|
64
|
-
this.path = '/message/ListWatchtowerDevices';
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
|
|
68
|
-
/**
|
|
69
|
-
* TODO: Needs documentation
|
|
70
|
-
*
|
|
71
|
-
* @export
|
|
72
|
-
* @class LiveGuardGenerateApiKey
|
|
73
|
-
* @implements {EvaService}
|
|
74
|
-
*/
|
|
75
|
-
class LiveGuardGenerateApiKey {
|
|
76
|
-
constructor() {
|
|
77
|
-
this.name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
|
|
78
|
-
this.path = '/message/LiveGuardGenerateApiKey';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
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;
|
|
96
|
-
/**
|
|
97
|
-
* Get an authentication token that's valid in the cloud for the current user
|
|
98
|
-
*
|
|
99
|
-
* @export
|
|
100
|
-
* @class LiveGuardGetCloudToken
|
|
101
|
-
* @implements {EvaService}
|
|
102
|
-
*/
|
|
103
|
-
class LiveGuardGetCloudToken {
|
|
104
|
-
constructor() {
|
|
105
|
-
this.name = 'CoreLiveGuard:LiveGuardGetCloudToken';
|
|
106
|
-
this.path = '/message/LiveGuardGetCloudToken';
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
|
|
110
|
-
/**
|
|
111
|
-
* Returns some basic information about the current state of the liveGuard
|
|
112
|
-
*
|
|
113
|
-
* @export
|
|
114
|
-
* @class LiveGuardGetInformation
|
|
115
|
-
* @implements {EvaService}
|
|
116
|
-
*/
|
|
117
|
-
class LiveGuardGetInformation {
|
|
118
|
-
constructor() {
|
|
119
|
-
this.name = 'CoreLiveGuard:LiveGuardGetInformation';
|
|
120
|
-
this.path = '/message/LiveGuardGetInformation';
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
|
|
124
|
-
/**
|
|
125
|
-
* Returns id mapping for cloud vs liveguard entities
|
|
126
|
-
*
|
|
127
|
-
* @export
|
|
128
|
-
* @class LiveGuardGetMapping
|
|
129
|
-
* @implements {EvaService}
|
|
130
|
-
*/
|
|
131
|
-
class LiveGuardGetMapping {
|
|
132
|
-
constructor() {
|
|
133
|
-
this.name = 'CoreLiveGuard:LiveGuardGetMapping';
|
|
134
|
-
this.path = '/message/LiveGuardGetMapping';
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
|
|
138
|
-
/**
|
|
139
|
-
* This service returns the operational flags for a liveguard instance.
|
|
140
|
-
*
|
|
141
|
-
* @export
|
|
142
|
-
* @class LiveGuardGetStatus
|
|
143
|
-
* @implements {EvaService}
|
|
144
|
-
*/
|
|
145
|
-
class LiveGuardGetStatus {
|
|
146
|
-
constructor() {
|
|
147
|
-
this.name = 'CoreLiveGuard:LiveGuardGetStatus';
|
|
148
|
-
this.path = '/message/LiveGuardGetStatus';
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
|
|
152
|
-
/**
|
|
153
|
-
* Retreive current secret for TOTP token usage
|
|
154
|
-
*
|
|
155
|
-
* @export
|
|
156
|
-
* @class LiveGuardGetTOTPSecret
|
|
157
|
-
* @implements {EvaService}
|
|
158
|
-
*/
|
|
159
|
-
class LiveGuardGetTOTPSecret {
|
|
160
|
-
constructor() {
|
|
161
|
-
this.name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
|
|
162
|
-
this.path = '/message/LiveGuardGetTOTPSecret';
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
|
|
166
|
-
/**
|
|
167
|
-
* Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
|
|
168
|
-
|
|
169
|
-
Can only be called by the liveguard user
|
|
170
|
-
*
|
|
171
|
-
* @export
|
|
172
|
-
* @class LiveGuardGetTokenForUser
|
|
173
|
-
* @implements {EvaService}
|
|
174
|
-
*/
|
|
175
|
-
class LiveGuardGetTokenForUser {
|
|
176
|
-
constructor() {
|
|
177
|
-
this.name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
|
|
178
|
-
this.path = '/message/LiveGuardGetTokenForUser';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
|
|
182
|
-
/**
|
|
183
|
-
* Accepts an Order pushed from a LiveGuard instance
|
|
184
|
-
*
|
|
185
|
-
* @export
|
|
186
|
-
* @class LiveGuardPushOrder
|
|
187
|
-
* @implements {EvaService}
|
|
188
|
-
*/
|
|
189
|
-
class LiveGuardPushOrder {
|
|
190
|
-
constructor() {
|
|
191
|
-
this.name = 'CoreLiveGuard:LiveGuardPushOrder';
|
|
192
|
-
this.path = '/message/LiveGuardPushOrder';
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
|
|
196
|
-
/**
|
|
197
|
-
* This service overrides the operational flags for a liveguard instance.
|
|
198
|
-
|
|
199
|
-
This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
|
|
200
|
-
*
|
|
201
|
-
* @export
|
|
202
|
-
* @class LiveGuardSetStatus
|
|
203
|
-
* @implements {EvaService}
|
|
204
|
-
*/
|
|
205
|
-
class LiveGuardSetStatus {
|
|
206
|
-
constructor() {
|
|
207
|
-
this.name = 'CoreLiveGuard:LiveGuardSetStatus';
|
|
208
|
-
this.path = '/message/LiveGuardSetStatus';
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
|
|
212
|
-
/**
|
|
213
|
-
* TODO: Needs documentation
|
|
214
|
-
*
|
|
215
|
-
* @export
|
|
216
|
-
* @class LiveGuardSyncCatalogByBlob
|
|
217
|
-
* @implements {EvaService}
|
|
218
|
-
*/
|
|
219
|
-
class LiveGuardSyncCatalogByBlob {
|
|
220
|
-
constructor() {
|
|
221
|
-
this.name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
|
|
222
|
-
this.path = '/message/LiveGuardSyncCatalogByBlob';
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
|
|
226
|
-
/**
|
|
227
|
-
* TODO: Needs documentation
|
|
228
|
-
*
|
|
229
|
-
* @export
|
|
230
|
-
* @class LiveGuardSyncGeneralByBlob
|
|
231
|
-
* @implements {EvaService}
|
|
232
|
-
*/
|
|
233
|
-
class LiveGuardSyncGeneralByBlob {
|
|
234
|
-
constructor() {
|
|
235
|
-
this.name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
|
|
236
|
-
this.path = '/message/LiveGuardSyncGeneralByBlob';
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
|
|
240
|
-
/**
|
|
241
|
-
* TODO: Needs documentation
|
|
242
|
-
*
|
|
243
|
-
* @export
|
|
244
|
-
* @class LiveGuardSyncUsersByBlob
|
|
245
|
-
* @implements {EvaService}
|
|
246
|
-
*/
|
|
247
|
-
class LiveGuardSyncUsersByBlob {
|
|
248
|
-
constructor() {
|
|
249
|
-
this.name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
|
|
250
|
-
this.path = '/message/LiveGuardSyncUsersByBlob';
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
|
|
254
|
-
/**
|
|
255
|
-
* Trigger a full sync on a liveguard instance, this has major performance impact for a while
|
|
256
|
-
*
|
|
257
|
-
* @export
|
|
258
|
-
* @class LiveGuardTriggerSync
|
|
259
|
-
* @implements {EvaService}
|
|
260
|
-
*/
|
|
261
|
-
class LiveGuardTriggerSync {
|
|
262
|
-
constructor() {
|
|
263
|
-
this.name = 'CoreLiveGuard:LiveGuardTriggerSync';
|
|
264
|
-
this.path = '/message/LiveGuardTriggerSync';
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
|
|
268
|
-
/**
|
|
269
|
-
* Push the current configuration for the given device to mender
|
|
270
|
-
*
|
|
271
|
-
* @export
|
|
272
|
-
* @class PushWatchtowerConfigurationToDevice
|
|
273
|
-
* @implements {EvaService}
|
|
274
|
-
*/
|
|
275
|
-
class PushWatchtowerConfigurationToDevice {
|
|
276
|
-
constructor() {
|
|
277
|
-
this.name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
|
|
278
|
-
this.path = '/message/PushWatchtowerConfigurationToDevice';
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
|
|
282
|
-
/**
|
|
283
|
-
* Execute a command on a device
|
|
284
|
-
*
|
|
285
|
-
* @export
|
|
286
|
-
* @class WatchtowerExecuteCommand
|
|
287
|
-
* @implements {EvaService}
|
|
288
|
-
*/
|
|
289
|
-
class WatchtowerExecuteCommand {
|
|
290
|
-
constructor() {
|
|
291
|
-
this.name = 'CoreLiveGuard:WatchtowerExecuteCommand';
|
|
292
|
-
this.path = '/message/WatchtowerExecuteCommand';
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
|
|
296
|
-
/**
|
|
297
|
-
* Try to find the device by the HardwareID in mender
|
|
298
|
-
|
|
299
|
-
Returns the DeviceID if already existing in EVA
|
|
300
|
-
Returns the MenderID if found in mender or already stored in EVA
|
|
301
|
-
*
|
|
302
|
-
* @export
|
|
303
|
-
* @class WatchtowerGetDeviceByHardwareID
|
|
304
|
-
* @implements {EvaService}
|
|
305
|
-
*/
|
|
306
|
-
class WatchtowerGetDeviceByHardwareID {
|
|
307
|
-
constructor() {
|
|
308
|
-
this.name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
|
|
309
|
-
this.path = '/message/WatchtowerGetDeviceByHardwareID';
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
|
|
313
|
-
/**
|
|
314
|
-
* Get details about the given device.
|
|
315
|
-
*
|
|
316
|
-
* @export
|
|
317
|
-
* @class WatchtowerGetDeviceDetails
|
|
318
|
-
* @implements {EvaService}
|
|
319
|
-
*/
|
|
320
|
-
class WatchtowerGetDeviceDetails {
|
|
321
|
-
constructor() {
|
|
322
|
-
this.name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
|
|
323
|
-
this.path = '/message/WatchtowerGetDeviceDetails';
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
|
|
327
|
-
})(exports.CoreLiveGuard || (exports.CoreLiveGuard = {}));
|
|
328
|
-
|
|
329
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
330
|
-
|
|
331
|
-
}));
|
|
332
|
-
//# sourceMappingURL=eva-services-core-live-guard.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eva-services-core-live-guard.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|