@openremote/rest 1.7.0-snapshot.20250605141506 → 1.7.0-snapshot.20250611105753

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