@openremote/rest 1.6.0-snapshot.20250425130725 → 1.6.0-snapshot.20250428100640

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