@openremote/rest 1.3.1 → 1.3.2

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.
@@ -9,30 +9,6 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class ProvisioningResourceClient<O> {
13
- protected httpClient: HttpClient<O>;
14
- constructor(httpClient: HttpClient<O>);
15
- /**
16
- * HTTP POST /provisioning
17
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
18
- */
19
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
20
- /**
21
- * HTTP GET /provisioning
22
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
23
- */
24
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
25
- /**
26
- * HTTP DELETE /provisioning/{id}
27
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
28
- */
29
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
30
- /**
31
- * HTTP PUT /provisioning/{id}
32
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
33
- */
34
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
35
- }
36
12
  export declare class AssetPredictedDatapointResourceClient<O> {
37
13
  protected httpClient: HttpClient<O>;
38
14
  constructor(httpClient: HttpClient<O>);
@@ -47,114 +23,50 @@ export declare class AssetPredictedDatapointResourceClient<O> {
47
23
  */
48
24
  writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
49
25
  }
50
- export declare class AppResourceClient<O> {
51
- protected httpClient: HttpClient<O>;
52
- constructor(httpClient: HttpClient<O>);
53
- /**
54
- * HTTP GET /apps
55
- * Java method: org.openremote.model.apps.AppResource.getApps
56
- */
57
- getApps(options?: O): RestResponse<string[]>;
58
- /**
59
- * HTTP GET /apps/consoleConfig
60
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
61
- */
62
- getConsoleConfig(options?: O): RestResponse<any>;
63
- /**
64
- * HTTP GET /apps/info
65
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
66
- */
67
- getAppInfos(options?: O): RestResponse<any>;
68
- }
69
- export declare class FlowResourceClient<O> {
70
- protected httpClient: HttpClient<O>;
71
- constructor(httpClient: HttpClient<O>);
72
- /**
73
- * HTTP GET /flow
74
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
75
- */
76
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
77
- /**
78
- * HTTP GET /flow/{name}
79
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
80
- */
81
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
82
- /**
83
- * HTTP GET /flow/{type}
84
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
85
- */
86
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
87
- }
88
- export declare class AlarmResourceClient<O> {
26
+ export declare class GatewayClientResourceClient<O> {
89
27
  protected httpClient: HttpClient<O>;
90
28
  constructor(httpClient: HttpClient<O>);
91
29
  /**
92
- * HTTP POST /alarm
93
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
94
- */
95
- createAlarm(alarm: Model.Alarm, queryParams?: {
96
- assetIds?: string[];
97
- }, options?: O): RestResponse<Model.SentAlarm>;
98
- /**
99
- * HTTP GET /alarm
100
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
101
- */
102
- getAlarms(queryParams?: {
103
- realm?: string;
104
- status?: Model.AlarmStatus;
105
- assetId?: string;
106
- assigneeId?: string;
107
- }, options?: O): RestResponse<Model.SentAlarm[]>;
108
- /**
109
- * HTTP DELETE /alarm
110
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
30
+ * HTTP DELETE /gateway/connection
31
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
111
32
  */
112
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
33
+ deleteConnections(queryParams?: {
34
+ realm?: string[];
35
+ }, options?: O): RestResponse<void>;
113
36
  /**
114
- * HTTP PUT /alarm/assets
115
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
37
+ * HTTP GET /gateway/connection
38
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
116
39
  */
117
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
40
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
118
41
  /**
119
- * HTTP GET /alarm/{alarmId}
120
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
42
+ * HTTP DELETE /gateway/connection/{realm}
43
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
121
44
  */
122
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
45
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
123
46
  /**
124
- * HTTP DELETE /alarm/{alarmId}
125
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
47
+ * HTTP GET /gateway/connection/{realm}
48
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
126
49
  */
127
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
50
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
128
51
  /**
129
- * HTTP PUT /alarm/{alarmId}
130
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
52
+ * HTTP PUT /gateway/connection/{realm}
53
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
131
54
  */
132
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
55
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
133
56
  /**
134
- * HTTP GET /alarm/{alarmId}/assets
135
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
57
+ * HTTP GET /gateway/status/{realm}
58
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
136
59
  */
137
- getAssetLinks(alarmId: number, queryParams?: {
138
- realm?: string;
139
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
60
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
140
61
  }
141
- export declare class StatusResourceClient<O> {
62
+ export declare class ConsoleResourceClient<O> {
142
63
  protected httpClient: HttpClient<O>;
143
64
  constructor(httpClient: HttpClient<O>);
144
65
  /**
145
- * HTTP GET /health
146
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
147
- */
148
- getHealthStatus(options?: O): RestResponse<{
149
- [index: string]: any;
150
- }>;
151
- /**
152
- * HTTP GET /info
153
- * Java method: org.openremote.model.system.StatusResource.getInfo
66
+ * HTTP POST /console/register
67
+ * Java method: org.openremote.model.console.ConsoleResource.register
154
68
  */
155
- getInfo(options?: O): RestResponse<{
156
- [index: string]: any;
157
- }>;
69
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
158
70
  }
159
71
  export declare class MapResourceClient<O> {
160
72
  protected httpClient: HttpClient<O>;
@@ -186,253 +98,88 @@ export declare class MapResourceClient<O> {
186
98
  */
187
99
  getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
188
100
  }
189
- export declare class GatewayServiceResourceClient<O> {
101
+ export declare class RulesResourceClient<O> {
190
102
  protected httpClient: HttpClient<O>;
191
103
  constructor(httpClient: HttpClient<O>);
192
104
  /**
193
- * HTTP POST /gateway/tunnel
194
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
105
+ * HTTP POST /rules
106
+ * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
195
107
  */
196
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
108
+ createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
197
109
  /**
198
- * HTTP DELETE /gateway/tunnel
199
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
110
+ * HTTP GET /rules
111
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
200
112
  */
201
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
113
+ getGlobalRulesets(queryParams?: {
114
+ language?: Model.RulesetLang[];
115
+ fullyPopulate?: boolean;
116
+ }, options?: O): RestResponse<Model.GlobalRuleset[]>;
202
117
  /**
203
- * HTTP GET /gateway/tunnel/{realm}
204
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
118
+ * HTTP POST /rules/asset
119
+ * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
205
120
  */
206
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
121
+ createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
207
122
  /**
208
- * HTTP GET /gateway/tunnel/{realm}/{id}
209
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
123
+ * HTTP GET /rules/asset/for/{assetId}
124
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
210
125
  */
211
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
126
+ getAssetRulesets(assetId: string, queryParams?: {
127
+ language?: Model.RulesetLang[];
128
+ fullyPopulate?: boolean;
129
+ }, options?: O): RestResponse<Model.AssetRuleset[]>;
212
130
  /**
213
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
214
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
131
+ * HTTP DELETE /rules/asset/{id}
132
+ * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
215
133
  */
216
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
217
- }
218
- export declare class SyslogResourceClient<O> {
219
- protected httpClient: HttpClient<O>;
220
- constructor(httpClient: HttpClient<O>);
134
+ deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
221
135
  /**
222
- * HTTP GET /syslog/config
223
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
136
+ * HTTP GET /rules/asset/{id}
137
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
224
138
  */
225
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
139
+ getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
226
140
  /**
227
- * HTTP PUT /syslog/config
228
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
141
+ * HTTP PUT /rules/asset/{id}
142
+ * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
229
143
  */
230
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
144
+ updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
231
145
  /**
232
- * HTTP DELETE /syslog/event
233
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
146
+ * HTTP GET /rules/geofences/{assetId}
147
+ * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
234
148
  */
235
- clearEvents(options?: O): RestResponse<void>;
149
+ getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
236
150
  /**
237
- * HTTP GET /syslog/event
238
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
151
+ * HTTP GET /rules/info/asset/{assetId}
152
+ * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
239
153
  */
240
- getEvents(queryParams?: {
241
- level?: Model.SyslogLevel;
242
- per_page?: number;
243
- page?: number;
244
- from?: number;
245
- to?: number;
246
- category?: Model.SyslogCategory[];
247
- subCategory?: string[];
248
- }, options?: O): RestResponse<any>;
249
- }
250
- export declare class AssetResourceClient<O> {
251
- protected httpClient: HttpClient<O>;
252
- constructor(httpClient: HttpClient<O>);
154
+ getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
253
155
  /**
254
- * HTTP POST /asset
255
- * Java method: org.openremote.model.asset.AssetResource.create
156
+ * HTTP GET /rules/info/global
157
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
256
158
  */
257
- create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
159
+ getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
258
160
  /**
259
- * HTTP DELETE /asset
260
- * Java method: org.openremote.model.asset.AssetResource.delete
161
+ * HTTP GET /rules/info/realm/{realm}
162
+ * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
261
163
  */
262
- delete(queryParams?: {
263
- assetId?: string[];
264
- }, options?: O): RestResponse<void>;
164
+ getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
265
165
  /**
266
- * HTTP PUT /asset/attributes
267
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
166
+ * HTTP POST /rules/realm
167
+ * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
268
168
  */
269
- writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
169
+ createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
270
170
  /**
271
- * HTTP PUT /asset/attributes/timestamp
272
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
171
+ * HTTP GET /rules/realm/for/{realm}
172
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
273
173
  */
274
- writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
174
+ getRealmRulesets(realm: string, queryParams?: {
175
+ language?: Model.RulesetLang[];
176
+ fullyPopulate?: boolean;
177
+ }, options?: O): RestResponse<Model.RealmRuleset[]>;
275
178
  /**
276
- * HTTP DELETE /asset/parent
277
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
179
+ * HTTP DELETE /rules/realm/{id}
180
+ * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
278
181
  */
279
- updateNoneParent(queryParams?: {
280
- assetIds?: string[];
281
- }, options?: O): RestResponse<void>;
282
- /**
283
- * HTTP GET /asset/partial/{assetId}
284
- * Java method: org.openremote.model.asset.AssetResource.getPartial
285
- */
286
- getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
287
- /**
288
- * HTTP POST /asset/query
289
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
290
- */
291
- queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
292
- /**
293
- * HTTP GET /asset/user/current
294
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
295
- */
296
- getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
297
- /**
298
- * HTTP POST /asset/user/link
299
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
300
- */
301
- createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
302
- /**
303
- * HTTP GET /asset/user/link
304
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
305
- */
306
- getUserAssetLinks(queryParams?: {
307
- realm?: string;
308
- userId?: string;
309
- assetId?: string;
310
- }, options?: O): RestResponse<Model.UserAssetLink[]>;
311
- /**
312
- * HTTP POST /asset/user/link/delete
313
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
314
- */
315
- deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
316
- /**
317
- * HTTP DELETE /asset/user/link/{realm}/{userId}
318
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
319
- */
320
- deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
321
- /**
322
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
323
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
324
- */
325
- deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
326
- /**
327
- * HTTP GET /asset/{assetId}
328
- * Java method: org.openremote.model.asset.AssetResource.get
329
- */
330
- get(assetId: string, options?: O): RestResponse<Model.Asset>;
331
- /**
332
- * HTTP PUT /asset/{assetId}
333
- * Java method: org.openremote.model.asset.AssetResource.update
334
- */
335
- update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
336
- /**
337
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
338
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
339
- */
340
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
341
- /**
342
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
343
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
344
- */
345
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
346
- /**
347
- * HTTP PUT /asset/{parentAssetId}/child
348
- * Java method: org.openremote.model.asset.AssetResource.updateParent
349
- */
350
- updateParent(parentAssetId: string, queryParams?: {
351
- assetIds?: string[];
352
- }, options?: O): RestResponse<void>;
353
- }
354
- export declare class RulesResourceClient<O> {
355
- protected httpClient: HttpClient<O>;
356
- constructor(httpClient: HttpClient<O>);
357
- /**
358
- * HTTP POST /rules
359
- * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
360
- */
361
- createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
362
- /**
363
- * HTTP GET /rules
364
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
365
- */
366
- getGlobalRulesets(queryParams?: {
367
- language?: Model.RulesetLang[];
368
- fullyPopulate?: boolean;
369
- }, options?: O): RestResponse<Model.GlobalRuleset[]>;
370
- /**
371
- * HTTP POST /rules/asset
372
- * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
373
- */
374
- createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
375
- /**
376
- * HTTP GET /rules/asset/for/{assetId}
377
- * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
378
- */
379
- getAssetRulesets(assetId: string, queryParams?: {
380
- language?: Model.RulesetLang[];
381
- fullyPopulate?: boolean;
382
- }, options?: O): RestResponse<Model.AssetRuleset[]>;
383
- /**
384
- * HTTP DELETE /rules/asset/{id}
385
- * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
386
- */
387
- deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
388
- /**
389
- * HTTP GET /rules/asset/{id}
390
- * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
391
- */
392
- getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
393
- /**
394
- * HTTP PUT /rules/asset/{id}
395
- * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
396
- */
397
- updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
398
- /**
399
- * HTTP GET /rules/geofences/{assetId}
400
- * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
401
- */
402
- getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
403
- /**
404
- * HTTP GET /rules/info/asset/{assetId}
405
- * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
406
- */
407
- getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
408
- /**
409
- * HTTP GET /rules/info/global
410
- * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
411
- */
412
- getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
413
- /**
414
- * HTTP GET /rules/info/realm/{realm}
415
- * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
416
- */
417
- getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
418
- /**
419
- * HTTP POST /rules/realm
420
- * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
421
- */
422
- createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
423
- /**
424
- * HTTP GET /rules/realm/for/{realm}
425
- * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
426
- */
427
- getRealmRulesets(realm: string, queryParams?: {
428
- language?: Model.RulesetLang[];
429
- fullyPopulate?: boolean;
430
- }, options?: O): RestResponse<Model.RealmRuleset[]>;
431
- /**
432
- * HTTP DELETE /rules/realm/{id}
433
- * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
434
- */
435
- deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
182
+ deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
436
183
  /**
437
184
  * HTTP GET /rules/realm/{id}
438
185
  * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
@@ -459,48 +206,98 @@ export declare class RulesResourceClient<O> {
459
206
  */
460
207
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
461
208
  }
462
- export declare class DashboardResourceClient<O> {
209
+ export declare class AssetModelResourceClient<O> {
463
210
  protected httpClient: HttpClient<O>;
464
211
  constructor(httpClient: HttpClient<O>);
465
212
  /**
466
- * HTTP POST /dashboard
467
- * Java method: org.openremote.model.dashboard.DashboardResource.create
213
+ * HTTP GET /model/assetDescriptors
214
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
468
215
  */
469
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
216
+ getAssetDescriptors(queryParams?: {
217
+ parentId?: string;
218
+ parentType?: string;
219
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
470
220
  /**
471
- * HTTP PUT /dashboard
472
- * Java method: org.openremote.model.dashboard.DashboardResource.update
221
+ * HTTP GET /model/assetInfo/{assetType}
222
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
473
223
  */
474
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
224
+ getAssetInfo(assetType: string, queryParams?: {
225
+ parentId?: string;
226
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
475
227
  /**
476
- * HTTP GET /dashboard/all/{realm}
477
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
228
+ * HTTP GET /model/assetInfos
229
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
478
230
  */
479
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
231
+ getAssetInfos(queryParams?: {
232
+ parentId?: string;
233
+ parentType?: string;
234
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
480
235
  /**
481
- * HTTP POST /dashboard/query
482
- * Java method: org.openremote.model.dashboard.DashboardResource.query
236
+ * HTTP GET /model/metaItemDescriptors
237
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
483
238
  */
484
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
239
+ getMetaItemDescriptors(queryParams?: {
240
+ parentId?: string;
241
+ }, options?: O): RestResponse<{
242
+ [index: string]: Model.MetaItemDescriptor;
243
+ }>;
485
244
  /**
486
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
487
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
245
+ * HTTP GET /model/valueDescriptors
246
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
488
247
  */
489
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
248
+ getValueDescriptors(queryParams?: {
249
+ parentId?: string;
250
+ }, options?: O): RestResponse<{
251
+ [index: string]: Model.ValueDescriptor;
252
+ }>;
253
+ }
254
+ export declare class AppResourceClient<O> {
255
+ protected httpClient: HttpClient<O>;
256
+ constructor(httpClient: HttpClient<O>);
490
257
  /**
491
- * HTTP GET /dashboard/{realm}/{dashboardId}
492
- * Java method: org.openremote.model.dashboard.DashboardResource.get
258
+ * HTTP GET /apps
259
+ * Java method: org.openremote.model.apps.AppResource.getApps
493
260
  */
494
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
261
+ getApps(options?: O): RestResponse<string[]>;
262
+ /**
263
+ * HTTP GET /apps/consoleConfig
264
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
265
+ */
266
+ getConsoleConfig(options?: O): RestResponse<any>;
267
+ /**
268
+ * HTTP GET /apps/info
269
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
270
+ */
271
+ getAppInfos(options?: O): RestResponse<any>;
495
272
  }
496
- export declare class ConsoleResourceClient<O> {
273
+ export declare class GatewayServiceResourceClient<O> {
497
274
  protected httpClient: HttpClient<O>;
498
275
  constructor(httpClient: HttpClient<O>);
499
276
  /**
500
- * HTTP POST /console/register
501
- * Java method: org.openremote.model.console.ConsoleResource.register
277
+ * HTTP POST /gateway/tunnel
278
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
502
279
  */
503
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
280
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
281
+ /**
282
+ * HTTP DELETE /gateway/tunnel
283
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
284
+ */
285
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
286
+ /**
287
+ * HTTP GET /gateway/tunnel/{realm}
288
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
289
+ */
290
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
291
+ /**
292
+ * HTTP GET /gateway/tunnel/{realm}/{id}
293
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
294
+ */
295
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
296
+ /**
297
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
298
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
299
+ */
300
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
504
301
  }
505
302
  export declare class UserResourceClient<O> {
506
303
  protected httpClient: HttpClient<O>;
@@ -626,112 +423,375 @@ export declare class UserResourceClient<O> {
626
423
  */
627
424
  get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
628
425
  }
629
- export declare class AssetModelResourceClient<O> {
426
+ export declare class AssetResourceClient<O> {
630
427
  protected httpClient: HttpClient<O>;
631
428
  constructor(httpClient: HttpClient<O>);
632
429
  /**
633
- * HTTP GET /model/assetDescriptors
634
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
430
+ * HTTP POST /asset
431
+ * Java method: org.openremote.model.asset.AssetResource.create
635
432
  */
636
- getAssetDescriptors(queryParams?: {
637
- parentId?: string;
638
- parentType?: string;
639
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
433
+ create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
640
434
  /**
641
- * HTTP GET /model/assetInfo/{assetType}
642
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
435
+ * HTTP DELETE /asset
436
+ * Java method: org.openremote.model.asset.AssetResource.delete
643
437
  */
644
- getAssetInfo(assetType: string, queryParams?: {
438
+ delete(queryParams?: {
439
+ assetId?: string[];
440
+ }, options?: O): RestResponse<void>;
441
+ /**
442
+ * HTTP PUT /asset/attributes
443
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
444
+ */
445
+ writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
446
+ /**
447
+ * HTTP PUT /asset/attributes/timestamp
448
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
449
+ */
450
+ writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
451
+ /**
452
+ * HTTP DELETE /asset/parent
453
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
454
+ */
455
+ updateNoneParent(queryParams?: {
456
+ assetIds?: string[];
457
+ }, options?: O): RestResponse<void>;
458
+ /**
459
+ * HTTP GET /asset/partial/{assetId}
460
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
461
+ */
462
+ getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
463
+ /**
464
+ * HTTP POST /asset/query
465
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
466
+ */
467
+ queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
468
+ /**
469
+ * HTTP GET /asset/user/current
470
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
471
+ */
472
+ getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
473
+ /**
474
+ * HTTP POST /asset/user/link
475
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
476
+ */
477
+ createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
478
+ /**
479
+ * HTTP GET /asset/user/link
480
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
481
+ */
482
+ getUserAssetLinks(queryParams?: {
483
+ realm?: string;
484
+ userId?: string;
485
+ assetId?: string;
486
+ }, options?: O): RestResponse<Model.UserAssetLink[]>;
487
+ /**
488
+ * HTTP POST /asset/user/link/delete
489
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
490
+ */
491
+ deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
492
+ /**
493
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
494
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
495
+ */
496
+ deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
497
+ /**
498
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
499
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
500
+ */
501
+ deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
502
+ /**
503
+ * HTTP GET /asset/{assetId}
504
+ * Java method: org.openremote.model.asset.AssetResource.get
505
+ */
506
+ get(assetId: string, options?: O): RestResponse<Model.Asset>;
507
+ /**
508
+ * HTTP PUT /asset/{assetId}
509
+ * Java method: org.openremote.model.asset.AssetResource.update
510
+ */
511
+ update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
512
+ /**
513
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
514
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
515
+ */
516
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
517
+ /**
518
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
519
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
520
+ */
521
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
522
+ /**
523
+ * HTTP PUT /asset/{parentAssetId}/child
524
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
525
+ */
526
+ updateParent(parentAssetId: string, queryParams?: {
527
+ assetIds?: string[];
528
+ }, options?: O): RestResponse<void>;
529
+ }
530
+ export declare class AgentResourceClient<O> {
531
+ protected httpClient: HttpClient<O>;
532
+ constructor(httpClient: HttpClient<O>);
533
+ /**
534
+ * HTTP GET /agent/assetDiscovery/{agentId}
535
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
536
+ */
537
+ doProtocolAssetDiscovery(agentId: string, queryParams?: {
538
+ realm?: string;
539
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
540
+ /**
541
+ * HTTP POST /agent/assetImport/{agentId}
542
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
543
+ */
544
+ doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
545
+ realm?: string;
546
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
547
+ /**
548
+ * HTTP GET /agent/instanceDiscovery/{agentType}
549
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
550
+ */
551
+ doProtocolInstanceDiscovery(agentType: string, queryParams?: {
645
552
  parentId?: string;
646
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
553
+ realm?: string;
554
+ }, options?: O): RestResponse<Model.Agent[]>;
555
+ }
556
+ export declare class DashboardResourceClient<O> {
557
+ protected httpClient: HttpClient<O>;
558
+ constructor(httpClient: HttpClient<O>);
559
+ /**
560
+ * HTTP POST /dashboard
561
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
562
+ */
563
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
564
+ /**
565
+ * HTTP PUT /dashboard
566
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
567
+ */
568
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
569
+ /**
570
+ * HTTP GET /dashboard/all/{realm}
571
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
572
+ */
573
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
574
+ /**
575
+ * HTTP POST /dashboard/query
576
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
577
+ */
578
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
579
+ /**
580
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
581
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
582
+ */
583
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
584
+ /**
585
+ * HTTP GET /dashboard/{realm}/{dashboardId}
586
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
587
+ */
588
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
589
+ }
590
+ export declare class ProvisioningResourceClient<O> {
591
+ protected httpClient: HttpClient<O>;
592
+ constructor(httpClient: HttpClient<O>);
593
+ /**
594
+ * HTTP POST /provisioning
595
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
596
+ */
597
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
598
+ /**
599
+ * HTTP GET /provisioning
600
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
601
+ */
602
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
603
+ /**
604
+ * HTTP DELETE /provisioning/{id}
605
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
606
+ */
607
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
608
+ /**
609
+ * HTTP PUT /provisioning/{id}
610
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
611
+ */
612
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
613
+ }
614
+ export declare class AssetDatapointResourceClient<O> {
615
+ protected httpClient: HttpClient<O>;
616
+ constructor(httpClient: HttpClient<O>);
617
+ /**
618
+ * HTTP GET /asset/datapoint/export
619
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
620
+ */
621
+ getDatapointExport(queryParams?: {
622
+ attributeRefs?: string;
623
+ fromTimestamp?: number;
624
+ toTimestamp?: number;
625
+ }, options?: O): RestResponse<any>;
626
+ /**
627
+ * HTTP GET /asset/datapoint/periods
628
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
629
+ */
630
+ getDatapointPeriod(queryParams?: {
631
+ assetId?: string;
632
+ attributeName?: string;
633
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
634
+ /**
635
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
636
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
637
+ */
638
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
639
+ }
640
+ export declare class FlowResourceClient<O> {
641
+ protected httpClient: HttpClient<O>;
642
+ constructor(httpClient: HttpClient<O>);
643
+ /**
644
+ * HTTP GET /flow
645
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
646
+ */
647
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
648
+ /**
649
+ * HTTP GET /flow/{name}
650
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
651
+ */
652
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
653
+ /**
654
+ * HTTP GET /flow/{type}
655
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
656
+ */
657
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
658
+ }
659
+ export declare class RealmResourceClient<O> {
660
+ protected httpClient: HttpClient<O>;
661
+ constructor(httpClient: HttpClient<O>);
662
+ /**
663
+ * HTTP POST /realm
664
+ * Java method: org.openremote.model.security.RealmResource.create
665
+ */
666
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
667
+ /**
668
+ * HTTP GET /realm
669
+ * Java method: org.openremote.model.security.RealmResource.getAll
670
+ */
671
+ getAll(options?: O): RestResponse<Model.Realm[]>;
672
+ /**
673
+ * HTTP GET /realm/accessible
674
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
675
+ */
676
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
677
+ /**
678
+ * HTTP DELETE /realm/{name}
679
+ * Java method: org.openremote.model.security.RealmResource.delete
680
+ */
681
+ delete(name: string, options?: O): RestResponse<void>;
682
+ /**
683
+ * HTTP GET /realm/{name}
684
+ * Java method: org.openremote.model.security.RealmResource.get
685
+ */
686
+ get(name: string, options?: O): RestResponse<Model.Realm>;
687
+ /**
688
+ * HTTP PUT /realm/{name}
689
+ * Java method: org.openremote.model.security.RealmResource.update
690
+ */
691
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
692
+ }
693
+ export declare class AlarmResourceClient<O> {
694
+ protected httpClient: HttpClient<O>;
695
+ constructor(httpClient: HttpClient<O>);
696
+ /**
697
+ * HTTP POST /alarm
698
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
699
+ */
700
+ createAlarm(alarm: Model.Alarm, queryParams?: {
701
+ assetIds?: string[];
702
+ }, options?: O): RestResponse<Model.SentAlarm>;
703
+ /**
704
+ * HTTP GET /alarm
705
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
706
+ */
707
+ getAlarms(queryParams?: {
708
+ realm?: string;
709
+ status?: Model.AlarmStatus;
710
+ assetId?: string;
711
+ assigneeId?: string;
712
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
713
+ /**
714
+ * HTTP DELETE /alarm
715
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
716
+ */
717
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
718
+ /**
719
+ * HTTP PUT /alarm/assets
720
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
721
+ */
722
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
723
+ /**
724
+ * HTTP GET /alarm/{alarmId}
725
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
726
+ */
727
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
647
728
  /**
648
- * HTTP GET /model/assetInfos
649
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
729
+ * HTTP DELETE /alarm/{alarmId}
730
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
650
731
  */
651
- getAssetInfos(queryParams?: {
652
- parentId?: string;
653
- parentType?: string;
654
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
732
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
655
733
  /**
656
- * HTTP GET /model/metaItemDescriptors
657
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
734
+ * HTTP PUT /alarm/{alarmId}
735
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
658
736
  */
659
- getMetaItemDescriptors(queryParams?: {
660
- parentId?: string;
661
- }, options?: O): RestResponse<{
662
- [index: string]: Model.MetaItemDescriptor;
663
- }>;
737
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
664
738
  /**
665
- * HTTP GET /model/valueDescriptors
666
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
739
+ * HTTP GET /alarm/{alarmId}/assets
740
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
667
741
  */
668
- getValueDescriptors(queryParams?: {
669
- parentId?: string;
670
- }, options?: O): RestResponse<{
671
- [index: string]: Model.ValueDescriptor;
672
- }>;
742
+ getAssetLinks(alarmId: number, queryParams?: {
743
+ realm?: string;
744
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
673
745
  }
674
- export declare class GatewayClientResourceClient<O> {
746
+ export declare class SyslogResourceClient<O> {
675
747
  protected httpClient: HttpClient<O>;
676
748
  constructor(httpClient: HttpClient<O>);
677
749
  /**
678
- * HTTP DELETE /gateway/connection
679
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
680
- */
681
- deleteConnections(queryParams?: {
682
- realm?: string[];
683
- }, options?: O): RestResponse<void>;
684
- /**
685
- * HTTP GET /gateway/connection
686
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
687
- */
688
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
689
- /**
690
- * HTTP DELETE /gateway/connection/{realm}
691
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
750
+ * HTTP GET /syslog/config
751
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
692
752
  */
693
- deleteConnection(realm: string, options?: O): RestResponse<void>;
753
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
694
754
  /**
695
- * HTTP GET /gateway/connection/{realm}
696
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
755
+ * HTTP PUT /syslog/config
756
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
697
757
  */
698
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
758
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
699
759
  /**
700
- * HTTP PUT /gateway/connection/{realm}
701
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
760
+ * HTTP DELETE /syslog/event
761
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
702
762
  */
703
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
763
+ clearEvents(options?: O): RestResponse<void>;
704
764
  /**
705
- * HTTP GET /gateway/status/{realm}
706
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
765
+ * HTTP GET /syslog/event
766
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
707
767
  */
708
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
768
+ getEvents(queryParams?: {
769
+ level?: Model.SyslogLevel;
770
+ per_page?: number;
771
+ page?: number;
772
+ from?: number;
773
+ to?: number;
774
+ category?: Model.SyslogCategory[];
775
+ subCategory?: string[];
776
+ }, options?: O): RestResponse<any>;
709
777
  }
710
- export declare class AssetDatapointResourceClient<O> {
778
+ export declare class StatusResourceClient<O> {
711
779
  protected httpClient: HttpClient<O>;
712
780
  constructor(httpClient: HttpClient<O>);
713
781
  /**
714
- * HTTP GET /asset/datapoint/export
715
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
716
- */
717
- getDatapointExport(queryParams?: {
718
- attributeRefs?: string;
719
- fromTimestamp?: number;
720
- toTimestamp?: number;
721
- }, options?: O): RestResponse<any>;
722
- /**
723
- * HTTP GET /asset/datapoint/periods
724
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
782
+ * HTTP GET /health
783
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
725
784
  */
726
- getDatapointPeriod(queryParams?: {
727
- assetId?: string;
728
- attributeName?: string;
729
- }, options?: O): RestResponse<Model.DatapointPeriod>;
785
+ getHealthStatus(options?: O): RestResponse<{
786
+ [index: string]: any;
787
+ }>;
730
788
  /**
731
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
732
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
789
+ * HTTP GET /info
790
+ * Java method: org.openremote.model.system.StatusResource.getInfo
733
791
  */
734
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
792
+ getInfo(options?: O): RestResponse<{
793
+ [index: string]: any;
794
+ }>;
735
795
  }
736
796
  export declare class NotificationResourceClient<O> {
737
797
  protected httpClient: HttpClient<O>;
@@ -813,111 +873,51 @@ export declare class ConfigurationResourceClient<O> {
813
873
  */
814
874
  getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
815
875
  }
816
- export declare class AgentResourceClient<O> {
817
- protected httpClient: HttpClient<O>;
818
- constructor(httpClient: HttpClient<O>);
819
- /**
820
- * HTTP GET /agent/assetDiscovery/{agentId}
821
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
822
- */
823
- doProtocolAssetDiscovery(agentId: string, queryParams?: {
824
- realm?: string;
825
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
826
- /**
827
- * HTTP POST /agent/assetImport/{agentId}
828
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
829
- */
830
- doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
831
- realm?: string;
832
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
833
- /**
834
- * HTTP GET /agent/instanceDiscovery/{agentType}
835
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
836
- */
837
- doProtocolInstanceDiscovery(agentType: string, queryParams?: {
838
- parentId?: string;
839
- realm?: string;
840
- }, options?: O): RestResponse<Model.Agent[]>;
841
- }
842
- export declare class RealmResourceClient<O> {
843
- protected httpClient: HttpClient<O>;
844
- constructor(httpClient: HttpClient<O>);
845
- /**
846
- * HTTP POST /realm
847
- * Java method: org.openremote.model.security.RealmResource.create
848
- */
849
- create(realm: Model.Realm, options?: O): RestResponse<void>;
850
- /**
851
- * HTTP GET /realm
852
- * Java method: org.openremote.model.security.RealmResource.getAll
853
- */
854
- getAll(options?: O): RestResponse<Model.Realm[]>;
855
- /**
856
- * HTTP GET /realm/accessible
857
- * Java method: org.openremote.model.security.RealmResource.getAccessible
858
- */
859
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
860
- /**
861
- * HTTP DELETE /realm/{name}
862
- * Java method: org.openremote.model.security.RealmResource.delete
863
- */
864
- delete(name: string, options?: O): RestResponse<void>;
865
- /**
866
- * HTTP GET /realm/{name}
867
- * Java method: org.openremote.model.security.RealmResource.get
868
- */
869
- get(name: string, options?: O): RestResponse<Model.Realm>;
870
- /**
871
- * HTTP PUT /realm/{name}
872
- * Java method: org.openremote.model.security.RealmResource.update
873
- */
874
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
875
- }
876
876
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
877
877
  export declare class ApiClient {
878
- protected _provisioningResource: AxiosProvisioningResourceClient;
879
878
  protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
880
- protected _appResource: AxiosAppResourceClient;
881
- protected _flowResource: AxiosFlowResourceClient;
882
- protected _alarmResource: AxiosAlarmResourceClient;
883
- protected _statusResource: AxiosStatusResourceClient;
879
+ protected _gatewayClientResource: AxiosGatewayClientResourceClient;
880
+ protected _consoleResource: AxiosConsoleResourceClient;
884
881
  protected _mapResource: AxiosMapResourceClient;
882
+ protected _rulesResource: AxiosRulesResourceClient;
883
+ protected _assetModelResource: AxiosAssetModelResourceClient;
884
+ protected _appResource: AxiosAppResourceClient;
885
885
  protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
886
- protected _syslogResource: AxiosSyslogResourceClient;
886
+ protected _userResource: AxiosUserResourceClient;
887
887
  protected _assetResource: AxiosAssetResourceClient;
888
- protected _rulesResource: AxiosRulesResourceClient;
888
+ protected _agentResource: AxiosAgentResourceClient;
889
889
  protected _dashboardResource: AxiosDashboardResourceClient;
890
- protected _consoleResource: AxiosConsoleResourceClient;
891
- protected _userResource: AxiosUserResourceClient;
892
- protected _assetModelResource: AxiosAssetModelResourceClient;
893
- protected _gatewayClientResource: AxiosGatewayClientResourceClient;
890
+ protected _provisioningResource: AxiosProvisioningResourceClient;
894
891
  protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
892
+ protected _flowResource: AxiosFlowResourceClient;
893
+ protected _realmResource: AxiosRealmResourceClient;
894
+ protected _alarmResource: AxiosAlarmResourceClient;
895
+ protected _syslogResource: AxiosSyslogResourceClient;
896
+ protected _statusResource: AxiosStatusResourceClient;
895
897
  protected _notificationResource: AxiosNotificationResourceClient;
896
898
  protected _configurationResource: AxiosConfigurationResourceClient;
897
- protected _agentResource: AxiosAgentResourceClient;
898
- protected _realmResource: AxiosRealmResourceClient;
899
899
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
900
- get ProvisioningResource(): AxiosProvisioningResourceClient;
901
900
  get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
902
- get AppResource(): AxiosAppResourceClient;
903
- get FlowResource(): AxiosFlowResourceClient;
904
- get AlarmResource(): AxiosAlarmResourceClient;
905
- get StatusResource(): AxiosStatusResourceClient;
901
+ get GatewayClientResource(): AxiosGatewayClientResourceClient;
902
+ get ConsoleResource(): AxiosConsoleResourceClient;
906
903
  get MapResource(): AxiosMapResourceClient;
904
+ get RulesResource(): AxiosRulesResourceClient;
905
+ get AssetModelResource(): AxiosAssetModelResourceClient;
906
+ get AppResource(): AxiosAppResourceClient;
907
907
  get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
908
- get SyslogResource(): AxiosSyslogResourceClient;
908
+ get UserResource(): AxiosUserResourceClient;
909
909
  get AssetResource(): AxiosAssetResourceClient;
910
- get RulesResource(): AxiosRulesResourceClient;
910
+ get AgentResource(): AxiosAgentResourceClient;
911
911
  get DashboardResource(): AxiosDashboardResourceClient;
912
- get ConsoleResource(): AxiosConsoleResourceClient;
913
- get UserResource(): AxiosUserResourceClient;
914
- get AssetModelResource(): AxiosAssetModelResourceClient;
915
- get GatewayClientResource(): AxiosGatewayClientResourceClient;
912
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
916
913
  get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
914
+ get FlowResource(): AxiosFlowResourceClient;
915
+ get RealmResource(): AxiosRealmResourceClient;
916
+ get AlarmResource(): AxiosAlarmResourceClient;
917
+ get SyslogResource(): AxiosSyslogResourceClient;
918
+ get StatusResource(): AxiosStatusResourceClient;
917
919
  get NotificationResource(): AxiosNotificationResourceClient;
918
920
  get ConfigurationResource(): AxiosConfigurationResourceClient;
919
- get AgentResource(): AxiosAgentResourceClient;
920
- get RealmResource(): AxiosRealmResourceClient;
921
921
  }
922
922
  import * as Axios from "axios";
923
923
  declare module "axios" {
@@ -925,66 +925,66 @@ declare module "axios" {
925
925
  data: R;
926
926
  }
927
927
  }
928
- export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
928
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
929
929
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
930
930
  }
931
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
931
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
932
932
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
933
933
  }
934
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
934
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
935
935
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
936
936
  }
937
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
937
+ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
938
938
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
939
939
  }
940
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
940
+ export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
941
941
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
942
942
  }
943
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
943
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
944
944
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
945
945
  }
946
- export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
946
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
947
947
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
948
948
  }
949
949
  export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
950
950
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
951
951
  }
952
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
952
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
953
953
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
954
954
  }
955
955
  export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
956
956
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
957
957
  }
958
- export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
958
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
959
959
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
960
960
  }
961
961
  export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
962
962
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
963
963
  }
964
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
964
+ export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
965
965
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
966
966
  }
967
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
967
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
968
968
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
969
969
  }
970
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
970
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
971
971
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
972
972
  }
973
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
973
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
974
974
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
975
975
  }
976
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
976
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
977
977
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
978
978
  }
979
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
979
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
980
980
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
981
981
  }
982
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
982
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
983
983
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
984
984
  }
985
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
985
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
986
986
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
987
987
  }
988
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
988
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
989
989
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
990
990
  }