@springtree/eva-services-core-live-guard 2.1.0-beta.1 → 2.1.1

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.
@@ -0,0 +1,364 @@
1
+ export var CoreLiveGuard;
2
+ (function (CoreLiveGuard) {
3
+ /**
4
+ * Create a new SSL certificate for a Watchtower device.
5
+ *
6
+ * @export
7
+ * @class CreateWatchtowerCertificate
8
+ * @implements {EvaService}
9
+ */
10
+ class CreateWatchtowerCertificate {
11
+ name = 'CoreLiveGuard:CreateWatchtowerCertificate';
12
+ path = '/message/CreateWatchtowerCertificate';
13
+ request;
14
+ response;
15
+ }
16
+ CoreLiveGuard.CreateWatchtowerCertificate = CreateWatchtowerCertificate;
17
+ /**
18
+ * Create a new watchtower device
19
+
20
+ To create a device for fallback IO, leave the HardwareID null
21
+ When a HardwareID is set, the device will be boarded in mender and prepared for use.
22
+ *
23
+ * @export
24
+ * @class CreateWatchtowerDevice
25
+ * @implements {EvaService}
26
+ */
27
+ class CreateWatchtowerDevice {
28
+ name = 'CoreLiveGuard:CreateWatchtowerDevice';
29
+ path = '/message/CreateWatchtowerDevice';
30
+ request;
31
+ response;
32
+ }
33
+ CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
34
+ /**
35
+ * TODO: Needs documentation
36
+ *
37
+ * @export
38
+ * @class EVAStatus
39
+ * @implements {EvaService}
40
+ */
41
+ class EVAStatus {
42
+ name = 'CoreLiveGuard:EVAStatus';
43
+ path = '/message/EVAStatus';
44
+ request;
45
+ response;
46
+ }
47
+ CoreLiveGuard.EVAStatus = EVAStatus;
48
+ /**
49
+ * Get user information to sync to LiveGuard
50
+ *
51
+ * @export
52
+ * @class GetUserForLiveGuard
53
+ * @implements {EvaService}
54
+ */
55
+ class GetUserForLiveGuard {
56
+ name = 'CoreLiveGuard:GetUserForLiveGuard';
57
+ path = '/message/GetUserForLiveGuard';
58
+ request;
59
+ response;
60
+ }
61
+ CoreLiveGuard.GetUserForLiveGuard = GetUserForLiveGuard;
62
+ /**
63
+ * List the configured watchtower devices with their status
64
+ *
65
+ * @export
66
+ * @class ListWatchtowerDevices
67
+ * @implements {EvaService}
68
+ */
69
+ class ListWatchtowerDevices {
70
+ name = 'CoreLiveGuard:ListWatchtowerDevices';
71
+ path = '/message/ListWatchtowerDevices';
72
+ request;
73
+ response;
74
+ }
75
+ CoreLiveGuard.ListWatchtowerDevices = ListWatchtowerDevices;
76
+ /**
77
+ * Execute a command on a device
78
+ *
79
+ * @export
80
+ * @class LiveGuardExecuteTask
81
+ * @implements {EvaService}
82
+ */
83
+ class LiveGuardExecuteTask {
84
+ name = 'CoreLiveGuard:LiveGuardExecuteTask';
85
+ path = '/message/LiveGuardExecuteTask';
86
+ request;
87
+ response;
88
+ }
89
+ CoreLiveGuard.LiveGuardExecuteTask = LiveGuardExecuteTask;
90
+ /**
91
+ * TODO: Needs documentation
92
+ *
93
+ * @export
94
+ * @class LiveGuardGenerateApiKey
95
+ * @implements {EvaService}
96
+ */
97
+ class LiveGuardGenerateApiKey {
98
+ name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
99
+ path = '/message/LiveGuardGenerateApiKey';
100
+ request;
101
+ response;
102
+ }
103
+ CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
104
+ /**
105
+ * Retreive current chain status for the connected watchtower
106
+ *
107
+ * @export
108
+ * @class LiveGuardGetAuditChains
109
+ * @implements {EvaService}
110
+ */
111
+ class LiveGuardGetAuditChains {
112
+ name = 'CoreLiveGuard:LiveGuardGetAuditChains';
113
+ path = '/message/LiveGuardGetAuditChains';
114
+ request;
115
+ response;
116
+ }
117
+ CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
118
+ /**
119
+ * Get an authentication token that's valid in the cloud for the current user
120
+ *
121
+ * @export
122
+ * @class LiveGuardGetCloudToken
123
+ * @implements {EvaService}
124
+ */
125
+ class LiveGuardGetCloudToken {
126
+ name = 'CoreLiveGuard:LiveGuardGetCloudToken';
127
+ path = '/message/LiveGuardGetCloudToken';
128
+ request;
129
+ response;
130
+ }
131
+ CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
132
+ /**
133
+ * Returns some basic information about the current state of the liveGuard
134
+ *
135
+ * @export
136
+ * @class LiveGuardGetInformation
137
+ * @implements {EvaService}
138
+ */
139
+ class LiveGuardGetInformation {
140
+ name = 'CoreLiveGuard:LiveGuardGetInformation';
141
+ path = '/message/LiveGuardGetInformation';
142
+ request;
143
+ response;
144
+ }
145
+ CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
146
+ /**
147
+ * Returns id mapping for cloud vs liveguard entities
148
+ *
149
+ * @export
150
+ * @class LiveGuardGetMapping
151
+ * @implements {EvaService}
152
+ */
153
+ class LiveGuardGetMapping {
154
+ name = 'CoreLiveGuard:LiveGuardGetMapping';
155
+ path = '/message/LiveGuardGetMapping';
156
+ request;
157
+ response;
158
+ }
159
+ CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
160
+ /**
161
+ * This service returns the operational flags for a liveguard instance.
162
+ *
163
+ * @export
164
+ * @class LiveGuardGetStatus
165
+ * @implements {EvaService}
166
+ */
167
+ class LiveGuardGetStatus {
168
+ name = 'CoreLiveGuard:LiveGuardGetStatus';
169
+ path = '/message/LiveGuardGetStatus';
170
+ request;
171
+ response;
172
+ }
173
+ CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
174
+ /**
175
+ * Retreive current secret for TOTP token usage
176
+ *
177
+ * @export
178
+ * @class LiveGuardGetTOTPSecret
179
+ * @implements {EvaService}
180
+ */
181
+ class LiveGuardGetTOTPSecret {
182
+ name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
183
+ path = '/message/LiveGuardGetTOTPSecret';
184
+ request;
185
+ response;
186
+ }
187
+ CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
188
+ /**
189
+ * Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
190
+
191
+ Can only be called by the liveguard user
192
+ *
193
+ * @export
194
+ * @class LiveGuardGetTokenForUser
195
+ * @implements {EvaService}
196
+ */
197
+ class LiveGuardGetTokenForUser {
198
+ name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
199
+ path = '/message/LiveGuardGetTokenForUser';
200
+ request;
201
+ response;
202
+ }
203
+ CoreLiveGuard.LiveGuardGetTokenForUser = LiveGuardGetTokenForUser;
204
+ /**
205
+ * Push metrics of the watchtower device to the cloud.
206
+ *
207
+ * @export
208
+ * @class LiveGuardPushMetrics
209
+ * @implements {EvaService}
210
+ */
211
+ class LiveGuardPushMetrics {
212
+ name = 'CoreLiveGuard:LiveGuardPushMetrics';
213
+ path = '/message/LiveGuardPushMetrics';
214
+ request;
215
+ response;
216
+ }
217
+ CoreLiveGuard.LiveGuardPushMetrics = LiveGuardPushMetrics;
218
+ /**
219
+ * Accepts an Order pushed from a LiveGuard instance
220
+ *
221
+ * @export
222
+ * @class LiveGuardPushOrder
223
+ * @implements {EvaService}
224
+ */
225
+ class LiveGuardPushOrder {
226
+ name = 'CoreLiveGuard:LiveGuardPushOrder';
227
+ path = '/message/LiveGuardPushOrder';
228
+ request;
229
+ response;
230
+ }
231
+ CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
232
+ /**
233
+ * This service overrides the operational flags for a liveguard instance.
234
+
235
+ This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
236
+ *
237
+ * @export
238
+ * @class LiveGuardSetStatus
239
+ * @implements {EvaService}
240
+ */
241
+ class LiveGuardSetStatus {
242
+ name = 'CoreLiveGuard:LiveGuardSetStatus';
243
+ path = '/message/LiveGuardSetStatus';
244
+ request;
245
+ response;
246
+ }
247
+ CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
248
+ /**
249
+ * TODO: Needs documentation
250
+ *
251
+ * @export
252
+ * @class LiveGuardSyncCatalogByBlob
253
+ * @implements {EvaService}
254
+ */
255
+ class LiveGuardSyncCatalogByBlob {
256
+ name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
257
+ path = '/message/LiveGuardSyncCatalogByBlob';
258
+ request;
259
+ response;
260
+ }
261
+ CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
262
+ /**
263
+ * TODO: Needs documentation
264
+ *
265
+ * @export
266
+ * @class LiveGuardSyncGeneralByBlob
267
+ * @implements {EvaService}
268
+ */
269
+ class LiveGuardSyncGeneralByBlob {
270
+ name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
271
+ path = '/message/LiveGuardSyncGeneralByBlob';
272
+ request;
273
+ response;
274
+ }
275
+ CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
276
+ /**
277
+ * TODO: Needs documentation
278
+ *
279
+ * @export
280
+ * @class LiveGuardSyncUsersByBlob
281
+ * @implements {EvaService}
282
+ */
283
+ class LiveGuardSyncUsersByBlob {
284
+ name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
285
+ path = '/message/LiveGuardSyncUsersByBlob';
286
+ request;
287
+ response;
288
+ }
289
+ CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
290
+ /**
291
+ * Trigger a full sync on a liveguard instance, this has major performance impact for a while
292
+ *
293
+ * @export
294
+ * @class LiveGuardTriggerSync
295
+ * @implements {EvaService}
296
+ */
297
+ class LiveGuardTriggerSync {
298
+ name = 'CoreLiveGuard:LiveGuardTriggerSync';
299
+ path = '/message/LiveGuardTriggerSync';
300
+ request;
301
+ response;
302
+ }
303
+ CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
304
+ /**
305
+ * Push the current configuration for the given device to mender
306
+ *
307
+ * @export
308
+ * @class PushWatchtowerConfigurationToDevice
309
+ * @implements {EvaService}
310
+ */
311
+ class PushWatchtowerConfigurationToDevice {
312
+ name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
313
+ path = '/message/PushWatchtowerConfigurationToDevice';
314
+ request;
315
+ response;
316
+ }
317
+ CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
318
+ /**
319
+ * Execute a command on a device
320
+ *
321
+ * @export
322
+ * @class WatchtowerExecuteCommand
323
+ * @implements {EvaService}
324
+ */
325
+ class WatchtowerExecuteCommand {
326
+ name = 'CoreLiveGuard:WatchtowerExecuteCommand';
327
+ path = '/message/WatchtowerExecuteCommand';
328
+ request;
329
+ response;
330
+ }
331
+ CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
332
+ /**
333
+ * Try to find the device by the HardwareID in mender
334
+
335
+ Returns the DeviceID if already existing in EVA
336
+ Returns the MenderID if found in mender or already stored in EVA
337
+ *
338
+ * @export
339
+ * @class WatchtowerGetDeviceByHardwareID
340
+ * @implements {EvaService}
341
+ */
342
+ class WatchtowerGetDeviceByHardwareID {
343
+ name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
344
+ path = '/message/WatchtowerGetDeviceByHardwareID';
345
+ request;
346
+ response;
347
+ }
348
+ CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
349
+ /**
350
+ * Get details about the given device.
351
+ *
352
+ * @export
353
+ * @class WatchtowerGetDeviceDetails
354
+ * @implements {EvaService}
355
+ */
356
+ class WatchtowerGetDeviceDetails {
357
+ name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
358
+ path = '/message/WatchtowerGetDeviceDetails';
359
+ request;
360
+ response;
361
+ }
362
+ CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
363
+ })(CoreLiveGuard || (CoreLiveGuard = {}));
364
+ //# sourceMappingURL=EVA.Core.LiveGuard.Services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EVA.Core.LiveGuard.Services.js","sourceRoot":"","sources":["../src/EVA.Core.LiveGuard.Services.ts"],"names":[],"mappings":"AAEE,MAAM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