@springtree/eva-services-core-live-guard 2.0.16 → 2.1.0-beta.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.
@@ -1,326 +0,0 @@
1
- import { IEvaServiceDefinition } from '@springtree/eva-services-core';
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
- }
19
- /**
20
- * TODO: Needs documentation
21
- *
22
- * @export
23
- * @class EVAStatus
24
- * @implements {EvaService}
25
- */
26
- class EVAStatus implements IEvaServiceDefinition {
27
- name: string;
28
- path: string;
29
- request?: EVA.Core.LiveGuard.EVAStatus;
30
- response?: EVA.Core.LiveGuard.EVAStatusResponse;
31
- }
32
- /**
33
- * Get user information to sync to LiveGuard
34
- *
35
- * @export
36
- * @class GetUserForLiveGuard
37
- * @implements {EvaService}
38
- */
39
- class GetUserForLiveGuard implements IEvaServiceDefinition {
40
- name: string;
41
- path: string;
42
- request?: EVA.Core.LiveGuard.GetUserForLiveGuard;
43
- response?: EVA.Core.LiveGuard.GetUserForLiveGuardResponse;
44
- }
45
- /**
46
- * List the configured watchtower devices with their status
47
- *
48
- * @export
49
- * @class ListWatchtowerDevices
50
- * @implements {EvaService}
51
- */
52
- class ListWatchtowerDevices implements IEvaServiceDefinition {
53
- name: string;
54
- path: string;
55
- request?: EVA.Core.LiveGuard.ListWatchtowerDevices;
56
- response?: EVA.Core.LiveGuard.ListWatchtowerDevicesResponse;
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
- }
71
- /**
72
- * TODO: Needs documentation
73
- *
74
- * @export
75
- * @class LiveGuardGenerateApiKey
76
- * @implements {EvaService}
77
- */
78
- class LiveGuardGenerateApiKey implements IEvaServiceDefinition {
79
- name: string;
80
- path: string;
81
- request?: EVA.Core.LiveGuard.LiveGuardGenerateApiKey;
82
- response?: EVA.Core.LiveGuard.LiveGuardGenerateApiKeyResponse;
83
- }
84
- /**
85
- * Retreive current chain status for the connected watchtower
86
- *
87
- * @export
88
- * @class LiveGuardGetAuditChains
89
- * @implements {EvaService}
90
- */
91
- class LiveGuardGetAuditChains implements IEvaServiceDefinition {
92
- name: string;
93
- path: string;
94
- request?: EVA.Core.LiveGuard.LiveGuardGetAuditChains;
95
- response?: EVA.Core.LiveGuard.LiveGuardGetAuditChainsResponse;
96
- }
97
- /**
98
- * Get an authentication token that's valid in the cloud for the current user
99
- *
100
- * @export
101
- * @class LiveGuardGetCloudToken
102
- * @implements {EvaService}
103
- */
104
- class LiveGuardGetCloudToken implements IEvaServiceDefinition {
105
- name: string;
106
- path: string;
107
- request?: EVA.Core.LiveGuard.LiveGuardGetCloudToken;
108
- response?: EVA.Core.LiveGuard.LiveGuardGetCloudTokenResponse;
109
- }
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 implements IEvaServiceDefinition {
118
- name: string;
119
- path: string;
120
- request?: EVA.Core.LiveGuard.LiveGuardGetInformation;
121
- response?: EVA.Core.LiveGuard.LiveGuardGetInformationResponse;
122
- }
123
- /**
124
- * Returns id mapping for cloud vs liveguard entities
125
- *
126
- * @export
127
- * @class LiveGuardGetMapping
128
- * @implements {EvaService}
129
- */
130
- class LiveGuardGetMapping implements IEvaServiceDefinition {
131
- name: string;
132
- path: string;
133
- request?: EVA.Core.LiveGuard.LiveGuardGetMapping;
134
- response?: EVA.Core.LiveGuard.LiveGuardGetMappingResponse;
135
- }
136
- /**
137
- * This service returns the operational flags for a liveguard instance.
138
- *
139
- * @export
140
- * @class LiveGuardGetStatus
141
- * @implements {EvaService}
142
- */
143
- class LiveGuardGetStatus implements IEvaServiceDefinition {
144
- name: string;
145
- path: string;
146
- request?: EVA.Core.LiveGuard.LiveGuardGetStatus;
147
- response?: EVA.Core.LiveGuard.LiveGuardGetStatusResponse;
148
- }
149
- /**
150
- * Retreive current secret for TOTP token usage
151
- *
152
- * @export
153
- * @class LiveGuardGetTOTPSecret
154
- * @implements {EvaService}
155
- */
156
- class LiveGuardGetTOTPSecret implements IEvaServiceDefinition {
157
- name: string;
158
- path: string;
159
- request?: EVA.Core.LiveGuard.LiveGuardGetTOTPSecret;
160
- response?: EVA.Core.LiveGuard.LiveGuardGetTOTPSecretResponse;
161
- }
162
- /**
163
- * Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
164
-
165
- Can only be called by the liveguard user
166
- *
167
- * @export
168
- * @class LiveGuardGetTokenForUser
169
- * @implements {EvaService}
170
- */
171
- class LiveGuardGetTokenForUser implements IEvaServiceDefinition {
172
- name: string;
173
- path: string;
174
- request?: EVA.Core.LiveGuard.LiveGuardGetTokenForUser;
175
- response?: EVA.Core.LiveGuard.LiveGuardGetTokenForUserResponse;
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
- }
190
- /**
191
- * Accepts an Order pushed from a LiveGuard instance
192
- *
193
- * @export
194
- * @class LiveGuardPushOrder
195
- * @implements {EvaService}
196
- */
197
- class LiveGuardPushOrder implements IEvaServiceDefinition {
198
- name: string;
199
- path: string;
200
- request?: EVA.Core.LiveGuard.LiveGuardPushOrder;
201
- response?: EVA.Core.LiveGuard.LiveGuardPushOrderResponse;
202
- }
203
- /**
204
- * This service overrides the operational flags for a liveguard instance.
205
-
206
- This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
207
- *
208
- * @export
209
- * @class LiveGuardSetStatus
210
- * @implements {EvaService}
211
- */
212
- class LiveGuardSetStatus implements IEvaServiceDefinition {
213
- name: string;
214
- path: string;
215
- request?: EVA.Core.LiveGuard.LiveGuardSetStatus;
216
- response?: EVA.Core.EmptyResponseMessage;
217
- }
218
- /**
219
- * TODO: Needs documentation
220
- *
221
- * @export
222
- * @class LiveGuardSyncCatalogByBlob
223
- * @implements {EvaService}
224
- */
225
- class LiveGuardSyncCatalogByBlob implements IEvaServiceDefinition {
226
- name: string;
227
- path: string;
228
- request?: EVA.Core.LiveGuard.LiveGuardSyncCatalogByBlob;
229
- response?: EVA.Core.LiveGuard.LiveGuardSyncCatalogByBlobResponse;
230
- }
231
- /**
232
- * TODO: Needs documentation
233
- *
234
- * @export
235
- * @class LiveGuardSyncGeneralByBlob
236
- * @implements {EvaService}
237
- */
238
- class LiveGuardSyncGeneralByBlob implements IEvaServiceDefinition {
239
- name: string;
240
- path: string;
241
- request?: EVA.Core.LiveGuard.LiveGuardSyncGeneralByBlob;
242
- response?: EVA.Core.LiveGuard.LiveGuardSyncGeneralByBlobResponse;
243
- }
244
- /**
245
- * TODO: Needs documentation
246
- *
247
- * @export
248
- * @class LiveGuardSyncUsersByBlob
249
- * @implements {EvaService}
250
- */
251
- class LiveGuardSyncUsersByBlob implements IEvaServiceDefinition {
252
- name: string;
253
- path: string;
254
- request?: EVA.Core.LiveGuard.LiveGuardSyncUsersByBlob;
255
- response?: EVA.Core.LiveGuard.LiveGuardSyncUsersByBlobResponse;
256
- }
257
- /**
258
- * Trigger a full sync on a liveguard instance, this has major performance impact for a while
259
- *
260
- * @export
261
- * @class LiveGuardTriggerSync
262
- * @implements {EvaService}
263
- */
264
- class LiveGuardTriggerSync implements IEvaServiceDefinition {
265
- name: string;
266
- path: string;
267
- request?: EVA.Core.LiveGuard.LiveGuardTriggerSync;
268
- response?: EVA.Core.EmptyResponseMessage;
269
- }
270
- /**
271
- * Push the current configuration for the given device to mender
272
- *
273
- * @export
274
- * @class PushWatchtowerConfigurationToDevice
275
- * @implements {EvaService}
276
- */
277
- class PushWatchtowerConfigurationToDevice implements IEvaServiceDefinition {
278
- name: string;
279
- path: string;
280
- request?: EVA.Core.LiveGuard.PushWatchtowerConfigurationToDevice;
281
- response?: EVA.Core.EmptyResponseMessage;
282
- }
283
- /**
284
- * Execute a command on a device
285
- *
286
- * @export
287
- * @class WatchtowerExecuteCommand
288
- * @implements {EvaService}
289
- */
290
- class WatchtowerExecuteCommand implements IEvaServiceDefinition {
291
- name: string;
292
- path: string;
293
- request?: EVA.Core.LiveGuard.WatchtowerExecuteCommand;
294
- response?: EVA.Core.LiveGuard.WatchtowerExecuteCommandResponse;
295
- }
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 implements IEvaServiceDefinition {
307
- name: string;
308
- path: string;
309
- request?: EVA.Core.LiveGuard.WatchtowerGetDeviceByHardwareID;
310
- response?: EVA.Core.LiveGuard.WatchtowerGetDeviceByHardwareIDResponse;
311
- }
312
- /**
313
- * Get details about the given device.
314
- *
315
- * @export
316
- * @class WatchtowerGetDeviceDetails
317
- * @implements {EvaService}
318
- */
319
- class WatchtowerGetDeviceDetails implements IEvaServiceDefinition {
320
- name: string;
321
- path: string;
322
- request?: EVA.Core.LiveGuard.WatchtowerGetDeviceDetails;
323
- response?: EVA.Core.LiveGuard.WatchtowerGetDeviceDetailsResponse;
324
- }
325
- }
326
- //# sourceMappingURL=EVA.Core.LiveGuard.Services.d.ts.map
@@ -1 +0,0 @@
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,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC;KAC3D;IAED;;;;;;OAMG;IACH,MAAa,qBAAsB,YAAW,qBAAqB;QACjE,IAAI,SAAyC;QAC7C,IAAI,SAAoC;QACxC,OAAO,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC;QACnD,QAAQ,CAAC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AAI,CAAC,SAAS,CAAC,kCAAkC,CAAC;KAClE;CACF"}
@@ -1,350 +0,0 @@
1
- export 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
- name = 'CoreLiveGuard:CreateWatchtowerDevice';
15
- path = '/message/CreateWatchtowerDevice';
16
- request;
17
- response;
18
- }
19
- CoreLiveGuard.CreateWatchtowerDevice = CreateWatchtowerDevice;
20
- /**
21
- * TODO: Needs documentation
22
- *
23
- * @export
24
- * @class EVAStatus
25
- * @implements {EvaService}
26
- */
27
- class EVAStatus {
28
- name = 'CoreLiveGuard:EVAStatus';
29
- path = '/message/EVAStatus';
30
- request;
31
- response;
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
- name = 'CoreLiveGuard:GetUserForLiveGuard';
43
- path = '/message/GetUserForLiveGuard';
44
- request;
45
- response;
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
- name = 'CoreLiveGuard:ListWatchtowerDevices';
57
- path = '/message/ListWatchtowerDevices';
58
- request;
59
- response;
60
- }
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;
76
- /**
77
- * TODO: Needs documentation
78
- *
79
- * @export
80
- * @class LiveGuardGenerateApiKey
81
- * @implements {EvaService}
82
- */
83
- class LiveGuardGenerateApiKey {
84
- name = 'CoreLiveGuard:LiveGuardGenerateApiKey';
85
- path = '/message/LiveGuardGenerateApiKey';
86
- request;
87
- response;
88
- }
89
- CoreLiveGuard.LiveGuardGenerateApiKey = LiveGuardGenerateApiKey;
90
- /**
91
- * Retreive current chain status for the connected watchtower
92
- *
93
- * @export
94
- * @class LiveGuardGetAuditChains
95
- * @implements {EvaService}
96
- */
97
- class LiveGuardGetAuditChains {
98
- name = 'CoreLiveGuard:LiveGuardGetAuditChains';
99
- path = '/message/LiveGuardGetAuditChains';
100
- request;
101
- response;
102
- }
103
- CoreLiveGuard.LiveGuardGetAuditChains = LiveGuardGetAuditChains;
104
- /**
105
- * Get an authentication token that's valid in the cloud for the current user
106
- *
107
- * @export
108
- * @class LiveGuardGetCloudToken
109
- * @implements {EvaService}
110
- */
111
- class LiveGuardGetCloudToken {
112
- name = 'CoreLiveGuard:LiveGuardGetCloudToken';
113
- path = '/message/LiveGuardGetCloudToken';
114
- request;
115
- response;
116
- }
117
- CoreLiveGuard.LiveGuardGetCloudToken = LiveGuardGetCloudToken;
118
- /**
119
- * Returns some basic information about the current state of the liveGuard
120
- *
121
- * @export
122
- * @class LiveGuardGetInformation
123
- * @implements {EvaService}
124
- */
125
- class LiveGuardGetInformation {
126
- name = 'CoreLiveGuard:LiveGuardGetInformation';
127
- path = '/message/LiveGuardGetInformation';
128
- request;
129
- response;
130
- }
131
- CoreLiveGuard.LiveGuardGetInformation = LiveGuardGetInformation;
132
- /**
133
- * Returns id mapping for cloud vs liveguard entities
134
- *
135
- * @export
136
- * @class LiveGuardGetMapping
137
- * @implements {EvaService}
138
- */
139
- class LiveGuardGetMapping {
140
- name = 'CoreLiveGuard:LiveGuardGetMapping';
141
- path = '/message/LiveGuardGetMapping';
142
- request;
143
- response;
144
- }
145
- CoreLiveGuard.LiveGuardGetMapping = LiveGuardGetMapping;
146
- /**
147
- * This service returns the operational flags for a liveguard instance.
148
- *
149
- * @export
150
- * @class LiveGuardGetStatus
151
- * @implements {EvaService}
152
- */
153
- class LiveGuardGetStatus {
154
- name = 'CoreLiveGuard:LiveGuardGetStatus';
155
- path = '/message/LiveGuardGetStatus';
156
- request;
157
- response;
158
- }
159
- CoreLiveGuard.LiveGuardGetStatus = LiveGuardGetStatus;
160
- /**
161
- * Retreive current secret for TOTP token usage
162
- *
163
- * @export
164
- * @class LiveGuardGetTOTPSecret
165
- * @implements {EvaService}
166
- */
167
- class LiveGuardGetTOTPSecret {
168
- name = 'CoreLiveGuard:LiveGuardGetTOTPSecret';
169
- path = '/message/LiveGuardGetTOTPSecret';
170
- request;
171
- response;
172
- }
173
- CoreLiveGuard.LiveGuardGetTOTPSecret = LiveGuardGetTOTPSecret;
174
- /**
175
- * Service called by a liveguard instance to generate an authentication token for an authorized user on the liveguard
176
-
177
- Can only be called by the liveguard user
178
- *
179
- * @export
180
- * @class LiveGuardGetTokenForUser
181
- * @implements {EvaService}
182
- */
183
- class LiveGuardGetTokenForUser {
184
- name = 'CoreLiveGuard:LiveGuardGetTokenForUser';
185
- path = '/message/LiveGuardGetTokenForUser';
186
- request;
187
- response;
188
- }
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;
204
- /**
205
- * Accepts an Order pushed from a LiveGuard instance
206
- *
207
- * @export
208
- * @class LiveGuardPushOrder
209
- * @implements {EvaService}
210
- */
211
- class LiveGuardPushOrder {
212
- name = 'CoreLiveGuard:LiveGuardPushOrder';
213
- path = '/message/LiveGuardPushOrder';
214
- request;
215
- response;
216
- }
217
- CoreLiveGuard.LiveGuardPushOrder = LiveGuardPushOrder;
218
- /**
219
- * This service overrides the operational flags for a liveguard instance.
220
-
221
- This should never be used in production environments. This is used to mimick offline scenario's in liveguard deployments in the cloud.
222
- *
223
- * @export
224
- * @class LiveGuardSetStatus
225
- * @implements {EvaService}
226
- */
227
- class LiveGuardSetStatus {
228
- name = 'CoreLiveGuard:LiveGuardSetStatus';
229
- path = '/message/LiveGuardSetStatus';
230
- request;
231
- response;
232
- }
233
- CoreLiveGuard.LiveGuardSetStatus = LiveGuardSetStatus;
234
- /**
235
- * TODO: Needs documentation
236
- *
237
- * @export
238
- * @class LiveGuardSyncCatalogByBlob
239
- * @implements {EvaService}
240
- */
241
- class LiveGuardSyncCatalogByBlob {
242
- name = 'CoreLiveGuard:LiveGuardSyncCatalogByBlob';
243
- path = '/message/LiveGuardSyncCatalogByBlob';
244
- request;
245
- response;
246
- }
247
- CoreLiveGuard.LiveGuardSyncCatalogByBlob = LiveGuardSyncCatalogByBlob;
248
- /**
249
- * TODO: Needs documentation
250
- *
251
- * @export
252
- * @class LiveGuardSyncGeneralByBlob
253
- * @implements {EvaService}
254
- */
255
- class LiveGuardSyncGeneralByBlob {
256
- name = 'CoreLiveGuard:LiveGuardSyncGeneralByBlob';
257
- path = '/message/LiveGuardSyncGeneralByBlob';
258
- request;
259
- response;
260
- }
261
- CoreLiveGuard.LiveGuardSyncGeneralByBlob = LiveGuardSyncGeneralByBlob;
262
- /**
263
- * TODO: Needs documentation
264
- *
265
- * @export
266
- * @class LiveGuardSyncUsersByBlob
267
- * @implements {EvaService}
268
- */
269
- class LiveGuardSyncUsersByBlob {
270
- name = 'CoreLiveGuard:LiveGuardSyncUsersByBlob';
271
- path = '/message/LiveGuardSyncUsersByBlob';
272
- request;
273
- response;
274
- }
275
- CoreLiveGuard.LiveGuardSyncUsersByBlob = LiveGuardSyncUsersByBlob;
276
- /**
277
- * Trigger a full sync on a liveguard instance, this has major performance impact for a while
278
- *
279
- * @export
280
- * @class LiveGuardTriggerSync
281
- * @implements {EvaService}
282
- */
283
- class LiveGuardTriggerSync {
284
- name = 'CoreLiveGuard:LiveGuardTriggerSync';
285
- path = '/message/LiveGuardTriggerSync';
286
- request;
287
- response;
288
- }
289
- CoreLiveGuard.LiveGuardTriggerSync = LiveGuardTriggerSync;
290
- /**
291
- * Push the current configuration for the given device to mender
292
- *
293
- * @export
294
- * @class PushWatchtowerConfigurationToDevice
295
- * @implements {EvaService}
296
- */
297
- class PushWatchtowerConfigurationToDevice {
298
- name = 'CoreLiveGuard:PushWatchtowerConfigurationToDevice';
299
- path = '/message/PushWatchtowerConfigurationToDevice';
300
- request;
301
- response;
302
- }
303
- CoreLiveGuard.PushWatchtowerConfigurationToDevice = PushWatchtowerConfigurationToDevice;
304
- /**
305
- * Execute a command on a device
306
- *
307
- * @export
308
- * @class WatchtowerExecuteCommand
309
- * @implements {EvaService}
310
- */
311
- class WatchtowerExecuteCommand {
312
- name = 'CoreLiveGuard:WatchtowerExecuteCommand';
313
- path = '/message/WatchtowerExecuteCommand';
314
- request;
315
- response;
316
- }
317
- CoreLiveGuard.WatchtowerExecuteCommand = WatchtowerExecuteCommand;
318
- /**
319
- * Try to find the device by the HardwareID in mender
320
-
321
- Returns the DeviceID if already existing in EVA
322
- Returns the MenderID if found in mender or already stored in EVA
323
- *
324
- * @export
325
- * @class WatchtowerGetDeviceByHardwareID
326
- * @implements {EvaService}
327
- */
328
- class WatchtowerGetDeviceByHardwareID {
329
- name = 'CoreLiveGuard:WatchtowerGetDeviceByHardwareID';
330
- path = '/message/WatchtowerGetDeviceByHardwareID';
331
- request;
332
- response;
333
- }
334
- CoreLiveGuard.WatchtowerGetDeviceByHardwareID = WatchtowerGetDeviceByHardwareID;
335
- /**
336
- * Get details about the given device.
337
- *
338
- * @export
339
- * @class WatchtowerGetDeviceDetails
340
- * @implements {EvaService}
341
- */
342
- class WatchtowerGetDeviceDetails {
343
- name = 'CoreLiveGuard:WatchtowerGetDeviceDetails';
344
- path = '/message/WatchtowerGetDeviceDetails';
345
- request;
346
- response;
347
- }
348
- CoreLiveGuard.WatchtowerGetDeviceDetails = WatchtowerGetDeviceDetails;
349
- })(CoreLiveGuard || (CoreLiveGuard = {}));
350
- //# sourceMappingURL=EVA.Core.LiveGuard.Services.js.map
@@ -1 +0,0 @@
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,gCAAgC,CAAC;QACxC,OAAO,CAA4C;QACnD,QAAQ,CAAoD;KAC7D;IALY,mCAAqB,wBAKjC,CAAA;IAED;;;;;;OAMG;IAC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