@openremote/rest 1.8.0-snapshot.20250725120001 → 1.8.0-snapshot.20250725120002

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.
package/lib/restclient.js CHANGED
@@ -1,423 +1,605 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- // Generated using typescript-generator version 3.2.1263 on 2025-07-25 13:54:25.
4
- export class NotificationResourceClient {
3
+ // Generated using typescript-generator version 3.2.1263 on 2025-07-25 16:03:40.
4
+ export class ProvisioningResourceClient {
5
5
  constructor(httpClient) {
6
6
  this.httpClient = httpClient;
7
7
  }
8
8
  /**
9
- * HTTP GET /notification
10
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
9
+ * HTTP POST /provisioning
10
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
11
11
  */
12
- getNotifications(queryParams, options) {
13
- return this.httpClient.request({ method: "GET", url: uriEncoding `notification`, queryParams: queryParams, options: options });
12
+ createProvisioningConfig(provisioningConfig, options) {
13
+ return this.httpClient.request({ method: "POST", url: uriEncoding `provisioning`, data: provisioningConfig, options: options });
14
14
  }
15
15
  /**
16
- * HTTP DELETE /notification
17
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
16
+ * HTTP GET /provisioning
17
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
18
18
  */
19
- removeNotifications(queryParams, options) {
20
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification`, queryParams: queryParams, options: options });
19
+ getProvisioningConfigs(options) {
20
+ return this.httpClient.request({ method: "GET", url: uriEncoding `provisioning`, options: options });
21
21
  }
22
22
  /**
23
- * HTTP POST /notification/alert
24
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
23
+ * HTTP DELETE /provisioning/{id}
24
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
25
25
  */
26
- sendNotification(notification, options) {
27
- return this.httpClient.request({ method: "POST", url: uriEncoding `notification/alert`, data: notification, options: options });
26
+ deleteProvisioningConfig(id, options) {
27
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `provisioning/${id}`, options: options });
28
28
  }
29
29
  /**
30
- * HTTP DELETE /notification/{notificationId}
31
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
30
+ * HTTP PUT /provisioning/{id}
31
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
32
32
  */
33
- removeNotification(notificationId, options) {
34
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification/${notificationId}`, options: options });
33
+ updateProvisioningConfig(id, provisioningConfig, options) {
34
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `provisioning/${id}`, data: provisioningConfig, options: options });
35
+ }
36
+ }
37
+ export class AssetPredictedDatapointResourceClient {
38
+ constructor(httpClient) {
39
+ this.httpClient = httpClient;
35
40
  }
36
41
  /**
37
- * HTTP PUT /notification/{notificationId}/acknowledged
38
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
42
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
43
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
39
44
  */
40
- notificationAcknowledged(notificationId, acknowledgement, queryParams, options) {
41
- return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/acknowledged`, queryParams: queryParams, data: acknowledgement, options: options });
45
+ getPredictedDatapoints(assetId, attributeName, query, options) {
46
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: query, options: options });
42
47
  }
43
48
  /**
44
- * HTTP PUT /notification/{notificationId}/delivered
45
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
49
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
50
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
46
51
  */
47
- notificationDelivered(notificationId, queryParams, options) {
48
- return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/delivered`, queryParams: queryParams, options: options });
52
+ writePredictedDatapoints(assetId, attributeName, predictedDatapoints, options) {
53
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: predictedDatapoints, options: options });
49
54
  }
50
55
  }
51
- export class ConfigurationResourceClient {
56
+ export class DashboardResourceClient {
52
57
  constructor(httpClient) {
53
58
  this.httpClient = httpClient;
54
59
  }
55
60
  /**
56
- * HTTP GET /configuration/manager
57
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
61
+ * HTTP POST /dashboard
62
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
58
63
  */
59
- getManagerConfig(options) {
60
- return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager`, options: options });
64
+ create(dashboard, options) {
65
+ return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard`, data: dashboard, options: options });
61
66
  }
62
67
  /**
63
- * HTTP PUT /configuration/manager
64
- * Java method: org.openremote.model.manager.ConfigurationResource.update
68
+ * HTTP PUT /dashboard
69
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
65
70
  */
66
- update(managerConfiguration, options) {
67
- return this.httpClient.request({ method: "PUT", url: uriEncoding `configuration/manager`, data: managerConfiguration, options: options });
71
+ update(dashboard, options) {
72
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `dashboard`, data: dashboard, options: options });
68
73
  }
69
74
  /**
70
- * HTTP POST /configuration/manager/file
71
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
75
+ * HTTP GET /dashboard/all/{realm}
76
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
72
77
  */
73
- fileUpload(fileInfo, queryParams, options) {
74
- return this.httpClient.request({ method: "POST", url: uriEncoding `configuration/manager/file`, queryParams: queryParams, data: fileInfo, options: options });
78
+ getAllRealmDashboards(realm, options) {
79
+ return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/all/${realm}`, options: options });
75
80
  }
76
81
  /**
77
- * HTTP GET /configuration/manager/image/{filename: .+}
78
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
82
+ * HTTP POST /dashboard/query
83
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
79
84
  */
80
- getManagerConfigImage(filename, options) {
81
- return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager/image/${filename}`, options: options });
85
+ query(dashboardQuery, options) {
86
+ return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard/query`, data: dashboardQuery, options: options });
87
+ }
88
+ /**
89
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
90
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
91
+ */
92
+ delete(realm, dashboardId, options) {
93
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
94
+ }
95
+ /**
96
+ * HTTP GET /dashboard/{realm}/{dashboardId}
97
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
98
+ */
99
+ get(realm, dashboardId, options) {
100
+ return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
82
101
  }
83
102
  }
84
- export class MapResourceClient {
103
+ export class AssetResourceClient {
85
104
  constructor(httpClient) {
86
105
  this.httpClient = httpClient;
87
106
  }
88
107
  /**
89
- * HTTP GET /map
90
- * Java method: org.openremote.model.map.MapResource.getSettings
108
+ * HTTP POST /asset
109
+ * Java method: org.openremote.model.asset.AssetResource.create
91
110
  */
92
- getSettings(options) {
93
- return this.httpClient.request({ method: "GET", url: uriEncoding `map`, options: options });
111
+ create(asset, options) {
112
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset`, data: asset, options: options });
94
113
  }
95
114
  /**
96
- * HTTP PUT /map
97
- * Java method: org.openremote.model.map.MapResource.saveSettings
115
+ * HTTP DELETE /asset
116
+ * Java method: org.openremote.model.asset.AssetResource.delete
98
117
  */
99
- saveSettings(mapConfig, options) {
100
- return this.httpClient.request({ method: "PUT", url: uriEncoding `map`, data: mapConfig, options: options });
118
+ delete(queryParams, options) {
119
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset`, queryParams: queryParams, options: options });
101
120
  }
102
121
  /**
103
- * HTTP DELETE /map/deleteMap
104
- * Java method: org.openremote.model.map.MapResource.deleteMap
122
+ * HTTP PUT /asset/attributes
123
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
105
124
  */
106
- deleteMap(options) {
107
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `map/deleteMap`, options: options });
125
+ writeAttributeValues(attributeStates, options) {
126
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes`, data: attributeStates, options: options });
108
127
  }
109
128
  /**
110
- * HTTP GET /map/getCustomMapInfo
111
- * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
129
+ * HTTP PUT /asset/attributes/timestamp
130
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
112
131
  */
113
- getCustomMapInfo(options) {
114
- return this.httpClient.request({ method: "GET", url: uriEncoding `map/getCustomMapInfo`, options: options });
132
+ writeAttributeEvents(attributeEvents, options) {
133
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes/timestamp`, data: attributeEvents, options: options });
115
134
  }
116
135
  /**
117
- * HTTP GET /map/js
118
- * Java method: org.openremote.model.map.MapResource.getSettingsJs
136
+ * HTTP DELETE /asset/parent
137
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
119
138
  */
120
- getSettingsJs(options) {
121
- return this.httpClient.request({ method: "GET", url: uriEncoding `map/js`, options: options });
139
+ updateNoneParent(queryParams, options) {
140
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/parent`, queryParams: queryParams, options: options });
122
141
  }
123
142
  /**
124
- * HTTP GET /map/tile/{zoom}/{column}/{row}
125
- * Java method: org.openremote.model.map.MapResource.getTile
143
+ * HTTP GET /asset/partial/{assetId}
144
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
126
145
  */
127
- getTile(zoom, column, row, options) {
128
- return this.httpClient.request({ method: "GET", url: uriEncoding `map/tile/${zoom}/${column}/${row}`, options: options });
146
+ getPartial(assetId, options) {
147
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/partial/${assetId}`, options: options });
129
148
  }
130
149
  /**
131
- * HTTP POST /map/upload
132
- * Java method: org.openremote.model.map.MapResource.uploadMap
150
+ * HTTP POST /asset/query
151
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
133
152
  */
134
- uploadMap(queryParams, options) {
135
- return this.httpClient.request({ method: "POST", url: uriEncoding `map/upload`, queryParams: queryParams, options: options });
136
- }
137
- }
138
- export class AlarmResourceClient {
139
- constructor(httpClient) {
140
- this.httpClient = httpClient;
153
+ queryAssets(query, options) {
154
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/query`, data: query, options: options });
141
155
  }
142
156
  /**
143
- * HTTP POST /alarm
144
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
157
+ * HTTP GET /asset/user/current
158
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
145
159
  */
146
- createAlarm(alarm, queryParams, options) {
147
- return this.httpClient.request({ method: "POST", url: uriEncoding `alarm`, queryParams: queryParams, data: alarm, options: options });
160
+ getCurrentUserAssets(options) {
161
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/current`, options: options });
148
162
  }
149
163
  /**
150
- * HTTP GET /alarm
151
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
164
+ * HTTP POST /asset/user/link
165
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
152
166
  */
153
- getAlarms(queryParams, options) {
154
- return this.httpClient.request({ method: "GET", url: uriEncoding `alarm`, queryParams: queryParams, options: options });
167
+ createUserAssetLinks(userAssets, options) {
168
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link`, data: userAssets, options: options });
155
169
  }
156
170
  /**
157
- * HTTP DELETE /alarm
158
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
171
+ * HTTP GET /asset/user/link
172
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
159
173
  */
160
- removeAlarms(ids, options) {
161
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm`, data: ids, options: options });
174
+ getUserAssetLinks(queryParams, options) {
175
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/link`, queryParams: queryParams, options: options });
162
176
  }
163
177
  /**
164
- * HTTP PUT /alarm/assets
165
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
178
+ * HTTP POST /asset/user/link/delete
179
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
166
180
  */
167
- setAssetLinks(links, options) {
168
- return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/assets`, data: links, options: options });
181
+ deleteUserAssetLinks(userAssets, options) {
182
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link/delete`, data: userAssets, options: options });
169
183
  }
170
184
  /**
171
- * HTTP GET /alarm/{alarmId}
172
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
185
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
186
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
173
187
  */
174
- getAlarm(alarmId, options) {
175
- return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}`, options: options });
188
+ deleteAllUserAssetLinks(realm, userId, options) {
189
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}`, options: options });
176
190
  }
177
191
  /**
178
- * HTTP DELETE /alarm/{alarmId}
179
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
192
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
193
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
180
194
  */
181
- removeAlarm(alarmId, options) {
182
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm/${alarmId}`, options: options });
195
+ deleteUserAssetLink(realm, userId, assetId, options) {
196
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}/${assetId}`, options: options });
183
197
  }
184
198
  /**
185
- * HTTP PUT /alarm/{alarmId}
186
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
199
+ * HTTP GET /asset/{assetId}
200
+ * Java method: org.openremote.model.asset.AssetResource.get
187
201
  */
188
- updateAlarm(alarmId, alarm, options) {
189
- return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/${alarmId}`, data: alarm, options: options });
202
+ get(assetId, options) {
203
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/${assetId}`, options: options });
190
204
  }
191
205
  /**
192
- * HTTP GET /alarm/{alarmId}/assets
193
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
206
+ * HTTP PUT /asset/{assetId}
207
+ * Java method: org.openremote.model.asset.AssetResource.update
194
208
  */
195
- getAssetLinks(alarmId, queryParams, options) {
196
- return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}/assets`, queryParams: queryParams, options: options });
197
- }
198
- }
199
- export class SyslogResourceClient {
200
- constructor(httpClient) {
201
- this.httpClient = httpClient;
209
+ update(assetId, asset, options) {
210
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}`, data: asset, options: options });
202
211
  }
203
212
  /**
204
- * HTTP GET /syslog/config
205
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
213
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
214
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
206
215
  */
207
- getConfig(options) {
208
- return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/config`, options: options });
216
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId, attributeName, value, options) {
217
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}`, data: value, options: options });
209
218
  }
210
219
  /**
211
- * HTTP PUT /syslog/config
212
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
220
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
221
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
213
222
  */
214
- updateConfig(config, options) {
215
- return this.httpClient.request({ method: "PUT", url: uriEncoding `syslog/config`, data: config, options: options });
223
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId, attributeName, timestamp, value, options) {
224
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}/${timestamp}`, data: value, options: options });
216
225
  }
217
226
  /**
218
- * HTTP DELETE /syslog/event
219
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
227
+ * HTTP PUT /asset/{parentAssetId}/child
228
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
220
229
  */
221
- clearEvents(options) {
222
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `syslog/event`, options: options });
223
- }
224
- /**
225
- * HTTP GET /syslog/event
226
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
227
- */
228
- getEvents(queryParams, options) {
229
- return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/event`, queryParams: queryParams, options: options });
230
+ updateParent(parentAssetId, queryParams, options) {
231
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${parentAssetId}/child`, queryParams: queryParams, options: options });
230
232
  }
231
233
  }
232
- export class GatewayServiceResourceClient {
234
+ export class ConfigurationResourceClient {
233
235
  constructor(httpClient) {
234
236
  this.httpClient = httpClient;
235
237
  }
236
238
  /**
237
- * HTTP POST /gateway/tunnel
238
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
239
+ * HTTP GET /configuration/manager
240
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
239
241
  */
240
- startTunnel(tunnelInfo, options) {
241
- return this.httpClient.request({ method: "POST", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
242
+ getManagerConfig(options) {
243
+ return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager`, options: options });
242
244
  }
243
245
  /**
244
- * HTTP DELETE /gateway/tunnel
245
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
246
+ * HTTP PUT /configuration/manager
247
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
246
248
  */
247
- stopTunnel(tunnelInfo, options) {
248
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
249
+ update(managerConfiguration, options) {
250
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `configuration/manager`, data: managerConfiguration, options: options });
249
251
  }
250
252
  /**
251
- * HTTP GET /gateway/tunnel/{realm}
252
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
253
+ * HTTP POST /configuration/manager/file
254
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
253
255
  */
254
- getAllActiveTunnelInfos(realm, options) {
255
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}`, options: options });
256
+ fileUpload(fileInfo, queryParams, options) {
257
+ return this.httpClient.request({ method: "POST", url: uriEncoding `configuration/manager/file`, queryParams: queryParams, data: fileInfo, options: options });
256
258
  }
257
259
  /**
258
- * HTTP GET /gateway/tunnel/{realm}/{id}
259
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
260
+ * HTTP GET /configuration/manager/image/{filename: .+}
261
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
260
262
  */
261
- getGatewayActiveTunnelInfos(realm, id, options) {
262
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}`, options: options });
263
+ getManagerConfigImage(filename, options) {
264
+ return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager/image/${filename}`, options: options });
265
+ }
266
+ }
267
+ export class AppResourceClient {
268
+ constructor(httpClient) {
269
+ this.httpClient = httpClient;
263
270
  }
264
271
  /**
265
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
266
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
272
+ * HTTP GET /apps
273
+ * Java method: org.openremote.model.apps.AppResource.getApps
267
274
  */
268
- getActiveTunnelInfo(realm, id, target, targetPort, options) {
269
- return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}/${target}/${targetPort}`, options: options });
275
+ getApps(options) {
276
+ return this.httpClient.request({ method: "GET", url: uriEncoding `apps`, options: options });
277
+ }
278
+ /**
279
+ * HTTP GET /apps/consoleConfig
280
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
281
+ */
282
+ getConsoleConfig(options) {
283
+ return this.httpClient.request({ method: "GET", url: uriEncoding `apps/consoleConfig`, options: options });
284
+ }
285
+ /**
286
+ * HTTP GET /apps/info
287
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
288
+ */
289
+ getAppInfos(options) {
290
+ return this.httpClient.request({ method: "GET", url: uriEncoding `apps/info`, options: options });
270
291
  }
271
292
  }
272
- export class DashboardResourceClient {
293
+ export class NotificationResourceClient {
273
294
  constructor(httpClient) {
274
295
  this.httpClient = httpClient;
275
296
  }
276
297
  /**
277
- * HTTP POST /dashboard
278
- * Java method: org.openremote.model.dashboard.DashboardResource.create
298
+ * HTTP GET /notification
299
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
279
300
  */
280
- create(dashboard, options) {
281
- return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard`, data: dashboard, options: options });
301
+ getNotifications(queryParams, options) {
302
+ return this.httpClient.request({ method: "GET", url: uriEncoding `notification`, queryParams: queryParams, options: options });
282
303
  }
283
304
  /**
284
- * HTTP PUT /dashboard
285
- * Java method: org.openremote.model.dashboard.DashboardResource.update
305
+ * HTTP DELETE /notification
306
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
286
307
  */
287
- update(dashboard, options) {
288
- return this.httpClient.request({ method: "PUT", url: uriEncoding `dashboard`, data: dashboard, options: options });
308
+ removeNotifications(queryParams, options) {
309
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification`, queryParams: queryParams, options: options });
289
310
  }
290
311
  /**
291
- * HTTP GET /dashboard/all/{realm}
292
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
312
+ * HTTP POST /notification/alert
313
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
293
314
  */
294
- getAllRealmDashboards(realm, options) {
295
- return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/all/${realm}`, options: options });
315
+ sendNotification(notification, options) {
316
+ return this.httpClient.request({ method: "POST", url: uriEncoding `notification/alert`, data: notification, options: options });
296
317
  }
297
318
  /**
298
- * HTTP POST /dashboard/query
299
- * Java method: org.openremote.model.dashboard.DashboardResource.query
319
+ * HTTP DELETE /notification/{notificationId}
320
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
300
321
  */
301
- query(dashboardQuery, options) {
302
- return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard/query`, data: dashboardQuery, options: options });
322
+ removeNotification(notificationId, options) {
323
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification/${notificationId}`, options: options });
303
324
  }
304
325
  /**
305
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
306
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
326
+ * HTTP PUT /notification/{notificationId}/acknowledged
327
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
307
328
  */
308
- delete(realm, dashboardId, options) {
309
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
329
+ notificationAcknowledged(notificationId, acknowledgement, queryParams, options) {
330
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/acknowledged`, queryParams: queryParams, data: acknowledgement, options: options });
310
331
  }
311
332
  /**
312
- * HTTP GET /dashboard/{realm}/{dashboardId}
313
- * Java method: org.openremote.model.dashboard.DashboardResource.get
333
+ * HTTP PUT /notification/{notificationId}/delivered
334
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
314
335
  */
315
- get(realm, dashboardId, options) {
316
- return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
336
+ notificationDelivered(notificationId, queryParams, options) {
337
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/delivered`, queryParams: queryParams, options: options });
317
338
  }
318
339
  }
319
- export class ConsoleResourceClient {
340
+ export class AssetModelResourceClient {
320
341
  constructor(httpClient) {
321
342
  this.httpClient = httpClient;
322
343
  }
323
344
  /**
324
- * HTTP POST /console/register
325
- * Java method: org.openremote.model.console.ConsoleResource.register
345
+ * HTTP GET /model/assetDescriptors
346
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
326
347
  */
327
- register(consoleRegistration, options) {
328
- return this.httpClient.request({ method: "POST", url: uriEncoding `console/register`, data: consoleRegistration, options: options });
348
+ getAssetDescriptors(queryParams, options) {
349
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetDescriptors`, queryParams: queryParams, options: options });
350
+ }
351
+ /**
352
+ * HTTP GET /model/assetInfo/{assetType}
353
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
354
+ */
355
+ getAssetInfo(assetType, queryParams, options) {
356
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfo/${assetType}`, queryParams: queryParams, options: options });
357
+ }
358
+ /**
359
+ * HTTP GET /model/assetInfos
360
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
361
+ */
362
+ getAssetInfos(queryParams, options) {
363
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfos`, queryParams: queryParams, options: options });
364
+ }
365
+ /**
366
+ * HTTP GET /model/metaItemDescriptors
367
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
368
+ */
369
+ getMetaItemDescriptors(queryParams, options) {
370
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/metaItemDescriptors`, queryParams: queryParams, options: options });
371
+ }
372
+ /**
373
+ * HTTP GET /model/valueDescriptors
374
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
375
+ */
376
+ getValueDescriptors(queryParams, options) {
377
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/valueDescriptors`, queryParams: queryParams, options: options });
329
378
  }
330
379
  }
331
- export class StatusResourceClient {
380
+ export class RulesResourceClient {
332
381
  constructor(httpClient) {
333
382
  this.httpClient = httpClient;
334
383
  }
335
384
  /**
336
- * HTTP GET /health
337
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
385
+ * HTTP POST /rules
386
+ * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
387
+ */
388
+ createGlobalRuleset(ruleset, options) {
389
+ return this.httpClient.request({ method: "POST", url: uriEncoding `rules`, data: ruleset, options: options });
390
+ }
391
+ /**
392
+ * HTTP GET /rules
393
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
394
+ */
395
+ getGlobalRulesets(queryParams, options) {
396
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules`, queryParams: queryParams, options: options });
397
+ }
398
+ /**
399
+ * HTTP POST /rules/asset
400
+ * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
401
+ */
402
+ createAssetRuleset(ruleset, options) {
403
+ return this.httpClient.request({ method: "POST", url: uriEncoding `rules/asset`, data: ruleset, options: options });
404
+ }
405
+ /**
406
+ * HTTP GET /rules/asset/for/{assetId}
407
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
408
+ */
409
+ getAssetRulesets(assetId, queryParams, options) {
410
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/for/${assetId}`, queryParams: queryParams, options: options });
411
+ }
412
+ /**
413
+ * HTTP DELETE /rules/asset/{id}
414
+ * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
415
+ */
416
+ deleteAssetRuleset(id, options) {
417
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/asset/${id}`, options: options });
418
+ }
419
+ /**
420
+ * HTTP GET /rules/asset/{id}
421
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
422
+ */
423
+ getAssetRuleset(id, options) {
424
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/${id}`, options: options });
425
+ }
426
+ /**
427
+ * HTTP PUT /rules/asset/{id}
428
+ * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
429
+ */
430
+ updateAssetRuleset(id, ruleset, options) {
431
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/asset/${id}`, data: ruleset, options: options });
432
+ }
433
+ /**
434
+ * HTTP GET /rules/geofences/{assetId}
435
+ * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
436
+ */
437
+ getAssetGeofences(assetId, options) {
438
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/geofences/${assetId}`, options: options });
439
+ }
440
+ /**
441
+ * HTTP GET /rules/info/asset/{assetId}
442
+ * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
443
+ */
444
+ getAssetEngineInfo(assetId, options) {
445
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/asset/${assetId}`, options: options });
446
+ }
447
+ /**
448
+ * HTTP GET /rules/info/global
449
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
450
+ */
451
+ getGlobalEngineInfo(options) {
452
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/global`, options: options });
453
+ }
454
+ /**
455
+ * HTTP GET /rules/info/realm/{realm}
456
+ * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
457
+ */
458
+ getRealmEngineInfo(realm, options) {
459
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/realm/${realm}`, options: options });
460
+ }
461
+ /**
462
+ * HTTP POST /rules/realm
463
+ * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
464
+ */
465
+ createRealmRuleset(ruleset, options) {
466
+ return this.httpClient.request({ method: "POST", url: uriEncoding `rules/realm`, data: ruleset, options: options });
467
+ }
468
+ /**
469
+ * HTTP GET /rules/realm/for/{realm}
470
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
471
+ */
472
+ getRealmRulesets(realm, queryParams, options) {
473
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/for/${realm}`, queryParams: queryParams, options: options });
474
+ }
475
+ /**
476
+ * HTTP DELETE /rules/realm/{id}
477
+ * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
478
+ */
479
+ deleteRealmRuleset(id, options) {
480
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/realm/${id}`, options: options });
481
+ }
482
+ /**
483
+ * HTTP GET /rules/realm/{id}
484
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
485
+ */
486
+ getRealmRuleset(id, options) {
487
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/${id}`, options: options });
488
+ }
489
+ /**
490
+ * HTTP PUT /rules/realm/{id}
491
+ * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
492
+ */
493
+ updateRealmRuleset(id, ruleset, options) {
494
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/realm/${id}`, data: ruleset, options: options });
495
+ }
496
+ /**
497
+ * HTTP DELETE /rules/{id}
498
+ * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
499
+ */
500
+ deleteGlobalRuleset(id, options) {
501
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/${id}`, options: options });
502
+ }
503
+ /**
504
+ * HTTP GET /rules/{id}
505
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
338
506
  */
339
- getHealthStatus(options) {
340
- return this.httpClient.request({ method: "GET", url: uriEncoding `health`, options: options });
507
+ getGlobalRuleset(id, options) {
508
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/${id}`, options: options });
341
509
  }
342
510
  /**
343
- * HTTP GET /info
344
- * Java method: org.openremote.model.system.StatusResource.getInfo
511
+ * HTTP PUT /rules/{id}
512
+ * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
345
513
  */
346
- getInfo(options) {
347
- return this.httpClient.request({ method: "GET", url: uriEncoding `info`, options: options });
514
+ updateGlobalRuleset(id, ruleset, options) {
515
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/${id}`, data: ruleset, options: options });
348
516
  }
349
517
  }
350
- export class ProvisioningResourceClient {
518
+ export class SyslogResourceClient {
351
519
  constructor(httpClient) {
352
520
  this.httpClient = httpClient;
353
521
  }
354
522
  /**
355
- * HTTP POST /provisioning
356
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
523
+ * HTTP GET /syslog/config
524
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
357
525
  */
358
- createProvisioningConfig(provisioningConfig, options) {
359
- return this.httpClient.request({ method: "POST", url: uriEncoding `provisioning`, data: provisioningConfig, options: options });
526
+ getConfig(options) {
527
+ return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/config`, options: options });
360
528
  }
361
529
  /**
362
- * HTTP GET /provisioning
363
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
530
+ * HTTP PUT /syslog/config
531
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
364
532
  */
365
- getProvisioningConfigs(options) {
366
- return this.httpClient.request({ method: "GET", url: uriEncoding `provisioning`, options: options });
533
+ updateConfig(config, options) {
534
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `syslog/config`, data: config, options: options });
367
535
  }
368
536
  /**
369
- * HTTP DELETE /provisioning/{id}
370
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
537
+ * HTTP DELETE /syslog/event
538
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
371
539
  */
372
- deleteProvisioningConfig(id, options) {
373
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `provisioning/${id}`, options: options });
540
+ clearEvents(options) {
541
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `syslog/event`, options: options });
374
542
  }
375
543
  /**
376
- * HTTP PUT /provisioning/{id}
377
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
544
+ * HTTP GET /syslog/event
545
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
378
546
  */
379
- updateProvisioningConfig(id, provisioningConfig, options) {
380
- return this.httpClient.request({ method: "PUT", url: uriEncoding `provisioning/${id}`, data: provisioningConfig, options: options });
547
+ getEvents(queryParams, options) {
548
+ return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/event`, queryParams: queryParams, options: options });
381
549
  }
382
550
  }
383
- export class AssetModelResourceClient {
551
+ export class MapResourceClient {
384
552
  constructor(httpClient) {
385
553
  this.httpClient = httpClient;
386
554
  }
387
555
  /**
388
- * HTTP GET /model/assetDescriptors
389
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
556
+ * HTTP GET /map
557
+ * Java method: org.openremote.model.map.MapResource.getSettings
390
558
  */
391
- getAssetDescriptors(queryParams, options) {
392
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetDescriptors`, queryParams: queryParams, options: options });
559
+ getSettings(options) {
560
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map`, options: options });
393
561
  }
394
562
  /**
395
- * HTTP GET /model/assetInfo/{assetType}
396
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
563
+ * HTTP PUT /map
564
+ * Java method: org.openremote.model.map.MapResource.saveSettings
397
565
  */
398
- getAssetInfo(assetType, queryParams, options) {
399
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfo/${assetType}`, queryParams: queryParams, options: options });
566
+ saveSettings(mapConfig, options) {
567
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `map`, data: mapConfig, options: options });
400
568
  }
401
569
  /**
402
- * HTTP GET /model/assetInfos
403
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
570
+ * HTTP DELETE /map/deleteMap
571
+ * Java method: org.openremote.model.map.MapResource.deleteMap
404
572
  */
405
- getAssetInfos(queryParams, options) {
406
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfos`, queryParams: queryParams, options: options });
573
+ deleteMap(options) {
574
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `map/deleteMap`, options: options });
407
575
  }
408
576
  /**
409
- * HTTP GET /model/metaItemDescriptors
410
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
577
+ * HTTP GET /map/getCustomMapInfo
578
+ * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
411
579
  */
412
- getMetaItemDescriptors(queryParams, options) {
413
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/metaItemDescriptors`, queryParams: queryParams, options: options });
580
+ getCustomMapInfo(options) {
581
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map/getCustomMapInfo`, options: options });
414
582
  }
415
583
  /**
416
- * HTTP GET /model/valueDescriptors
417
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
584
+ * HTTP GET /map/js
585
+ * Java method: org.openremote.model.map.MapResource.getSettingsJs
418
586
  */
419
- getValueDescriptors(queryParams, options) {
420
- return this.httpClient.request({ method: "GET", url: uriEncoding `model/valueDescriptors`, queryParams: queryParams, options: options });
587
+ getSettingsJs(options) {
588
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map/js`, options: options });
589
+ }
590
+ /**
591
+ * HTTP GET /map/tile/{zoom}/{column}/{row}
592
+ * Java method: org.openremote.model.map.MapResource.getTile
593
+ */
594
+ getTile(zoom, column, row, options) {
595
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map/tile/${zoom}/${column}/${row}`, options: options });
596
+ }
597
+ /**
598
+ * HTTP POST /map/upload
599
+ * Java method: org.openremote.model.map.MapResource.uploadMap
600
+ */
601
+ uploadMap(queryParams, options) {
602
+ return this.httpClient.request({ method: "POST", url: uriEncoding `map/upload`, queryParams: queryParams, options: options });
421
603
  }
422
604
  }
423
605
  export class UserResourceClient {
@@ -540,221 +722,76 @@ export class UserResourceClient {
540
722
  * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
541
723
  * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
542
724
  */
543
- updateUserClientRoles(realm, userId, clientId, roles, options) {
544
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/userRoles/${userId}/${clientId}`, data: roles, options: options });
545
- }
546
- /**
547
- * HTTP GET /user/{realm}/userSessions/{userId}
548
- * Java method: org.openremote.model.security.UserResource.getUserSessions
549
- */
550
- getUserSessions(realm, userId, options) {
551
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userSessions/${userId}`, options: options });
552
- }
553
- /**
554
- * HTTP POST /user/{realm}/users
555
- * Java method: org.openremote.model.security.UserResource.create
556
- */
557
- create(realm, user, options) {
558
- return this.httpClient.request({ method: "POST", url: uriEncoding `user/${realm}/users`, data: user, options: options });
559
- }
560
- /**
561
- * HTTP PUT /user/{realm}/users
562
- * Java method: org.openremote.model.security.UserResource.update
563
- */
564
- update(realm, user, options) {
565
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/users`, data: user, options: options });
566
- }
567
- /**
568
- * HTTP DELETE /user/{realm}/users/{userId}
569
- * Java method: org.openremote.model.security.UserResource.delete
570
- */
571
- delete(realm, userId, options) {
572
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `user/${realm}/users/${userId}`, options: options });
573
- }
574
- /**
575
- * HTTP GET /user/{realm}/{clientId}/roles
576
- * Java method: org.openremote.model.security.UserResource.getClientRoles
577
- */
578
- getClientRoles(realm, clientId, options) {
579
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${clientId}/roles`, options: options });
580
- }
581
- /**
582
- * HTTP PUT /user/{realm}/{clientId}/roles
583
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
584
- */
585
- updateClientRoles(realm, clientId, roles, options) {
586
- return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/${clientId}/roles`, data: roles, options: options });
587
- }
588
- /**
589
- * HTTP GET /user/{realm}/{userId}
590
- * Java method: org.openremote.model.security.UserResource.get
591
- */
592
- get(realm, userId, options) {
593
- return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${userId}`, options: options });
594
- }
595
- }
596
- export class AgentResourceClient {
597
- constructor(httpClient) {
598
- this.httpClient = httpClient;
599
- }
600
- /**
601
- * HTTP GET /agent/assetDiscovery/{agentId}
602
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
603
- */
604
- doProtocolAssetDiscovery(agentId, queryParams, options) {
605
- return this.httpClient.request({ method: "GET", url: uriEncoding `agent/assetDiscovery/${agentId}`, queryParams: queryParams, options: options });
606
- }
607
- /**
608
- * HTTP POST /agent/assetImport/{agentId}
609
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
610
- */
611
- doProtocolAssetImport(agentId, fileInfo, queryParams, options) {
612
- return this.httpClient.request({ method: "POST", url: uriEncoding `agent/assetImport/${agentId}`, queryParams: queryParams, data: fileInfo, options: options });
613
- }
614
- /**
615
- * HTTP GET /agent/instanceDiscovery/{agentType}
616
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
617
- */
618
- doProtocolInstanceDiscovery(agentType, queryParams, options) {
619
- return this.httpClient.request({ method: "GET", url: uriEncoding `agent/instanceDiscovery/${agentType}`, queryParams: queryParams, options: options });
620
- }
621
- }
622
- export class RulesResourceClient {
623
- constructor(httpClient) {
624
- this.httpClient = httpClient;
625
- }
626
- /**
627
- * HTTP POST /rules
628
- * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
629
- */
630
- createGlobalRuleset(ruleset, options) {
631
- return this.httpClient.request({ method: "POST", url: uriEncoding `rules`, data: ruleset, options: options });
632
- }
633
- /**
634
- * HTTP GET /rules
635
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
636
- */
637
- getGlobalRulesets(queryParams, options) {
638
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules`, queryParams: queryParams, options: options });
639
- }
640
- /**
641
- * HTTP POST /rules/asset
642
- * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
643
- */
644
- createAssetRuleset(ruleset, options) {
645
- return this.httpClient.request({ method: "POST", url: uriEncoding `rules/asset`, data: ruleset, options: options });
646
- }
647
- /**
648
- * HTTP GET /rules/asset/for/{assetId}
649
- * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
650
- */
651
- getAssetRulesets(assetId, queryParams, options) {
652
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/for/${assetId}`, queryParams: queryParams, options: options });
653
- }
654
- /**
655
- * HTTP DELETE /rules/asset/{id}
656
- * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
657
- */
658
- deleteAssetRuleset(id, options) {
659
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/asset/${id}`, options: options });
660
- }
661
- /**
662
- * HTTP GET /rules/asset/{id}
663
- * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
664
- */
665
- getAssetRuleset(id, options) {
666
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/${id}`, options: options });
667
- }
668
- /**
669
- * HTTP PUT /rules/asset/{id}
670
- * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
671
- */
672
- updateAssetRuleset(id, ruleset, options) {
673
- return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/asset/${id}`, data: ruleset, options: options });
674
- }
675
- /**
676
- * HTTP GET /rules/geofences/{assetId}
677
- * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
678
- */
679
- getAssetGeofences(assetId, options) {
680
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/geofences/${assetId}`, options: options });
681
- }
682
- /**
683
- * HTTP GET /rules/info/asset/{assetId}
684
- * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
685
- */
686
- getAssetEngineInfo(assetId, options) {
687
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/asset/${assetId}`, options: options });
688
- }
689
- /**
690
- * HTTP GET /rules/info/global
691
- * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
692
- */
693
- getGlobalEngineInfo(options) {
694
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/global`, options: options });
725
+ updateUserClientRoles(realm, userId, clientId, roles, options) {
726
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/userRoles/${userId}/${clientId}`, data: roles, options: options });
695
727
  }
696
728
  /**
697
- * HTTP GET /rules/info/realm/{realm}
698
- * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
729
+ * HTTP GET /user/{realm}/userSessions/{userId}
730
+ * Java method: org.openremote.model.security.UserResource.getUserSessions
699
731
  */
700
- getRealmEngineInfo(realm, options) {
701
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/realm/${realm}`, options: options });
732
+ getUserSessions(realm, userId, options) {
733
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userSessions/${userId}`, options: options });
702
734
  }
703
735
  /**
704
- * HTTP POST /rules/realm
705
- * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
736
+ * HTTP POST /user/{realm}/users
737
+ * Java method: org.openremote.model.security.UserResource.create
706
738
  */
707
- createRealmRuleset(ruleset, options) {
708
- return this.httpClient.request({ method: "POST", url: uriEncoding `rules/realm`, data: ruleset, options: options });
739
+ create(realm, user, options) {
740
+ return this.httpClient.request({ method: "POST", url: uriEncoding `user/${realm}/users`, data: user, options: options });
709
741
  }
710
742
  /**
711
- * HTTP GET /rules/realm/for/{realm}
712
- * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
743
+ * HTTP PUT /user/{realm}/users
744
+ * Java method: org.openremote.model.security.UserResource.update
713
745
  */
714
- getRealmRulesets(realm, queryParams, options) {
715
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/for/${realm}`, queryParams: queryParams, options: options });
746
+ update(realm, user, options) {
747
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/users`, data: user, options: options });
716
748
  }
717
749
  /**
718
- * HTTP DELETE /rules/realm/{id}
719
- * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
750
+ * HTTP DELETE /user/{realm}/users/{userId}
751
+ * Java method: org.openremote.model.security.UserResource.delete
720
752
  */
721
- deleteRealmRuleset(id, options) {
722
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/realm/${id}`, options: options });
753
+ delete(realm, userId, options) {
754
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `user/${realm}/users/${userId}`, options: options });
723
755
  }
724
756
  /**
725
- * HTTP GET /rules/realm/{id}
726
- * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
757
+ * HTTP GET /user/{realm}/{clientId}/roles
758
+ * Java method: org.openremote.model.security.UserResource.getClientRoles
727
759
  */
728
- getRealmRuleset(id, options) {
729
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/${id}`, options: options });
760
+ getClientRoles(realm, clientId, options) {
761
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${clientId}/roles`, options: options });
730
762
  }
731
763
  /**
732
- * HTTP PUT /rules/realm/{id}
733
- * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
764
+ * HTTP PUT /user/{realm}/{clientId}/roles
765
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
734
766
  */
735
- updateRealmRuleset(id, ruleset, options) {
736
- return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/realm/${id}`, data: ruleset, options: options });
767
+ updateClientRoles(realm, clientId, roles, options) {
768
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/${clientId}/roles`, data: roles, options: options });
737
769
  }
738
770
  /**
739
- * HTTP DELETE /rules/{id}
740
- * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
771
+ * HTTP GET /user/{realm}/{userId}
772
+ * Java method: org.openremote.model.security.UserResource.get
741
773
  */
742
- deleteGlobalRuleset(id, options) {
743
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/${id}`, options: options });
774
+ get(realm, userId, options) {
775
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${userId}`, options: options });
776
+ }
777
+ }
778
+ export class StatusResourceClient {
779
+ constructor(httpClient) {
780
+ this.httpClient = httpClient;
744
781
  }
745
782
  /**
746
- * HTTP GET /rules/{id}
747
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
783
+ * HTTP GET /health
784
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
748
785
  */
749
- getGlobalRuleset(id, options) {
750
- return this.httpClient.request({ method: "GET", url: uriEncoding `rules/${id}`, options: options });
786
+ getHealthStatus(options) {
787
+ return this.httpClient.request({ method: "GET", url: uriEncoding `health`, options: options });
751
788
  }
752
789
  /**
753
- * HTTP PUT /rules/{id}
754
- * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
790
+ * HTTP GET /info
791
+ * Java method: org.openremote.model.system.StatusResource.getInfo
755
792
  */
756
- updateGlobalRuleset(id, ruleset, options) {
757
- return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/${id}`, data: ruleset, options: options });
793
+ getInfo(options) {
794
+ return this.httpClient.request({ method: "GET", url: uriEncoding `info`, options: options });
758
795
  }
759
796
  }
760
797
  export class AssetDatapointResourceClient {
@@ -783,49 +820,65 @@ export class AssetDatapointResourceClient {
783
820
  return this.httpClient.request({ method: "POST", url: uriEncoding `asset/datapoint/${assetId}/${attributeName}`, data: query, options: options });
784
821
  }
785
822
  }
786
- export class AppResourceClient {
823
+ export class AlarmResourceClient {
787
824
  constructor(httpClient) {
788
825
  this.httpClient = httpClient;
789
826
  }
790
827
  /**
791
- * HTTP GET /apps
792
- * Java method: org.openremote.model.apps.AppResource.getApps
828
+ * HTTP POST /alarm
829
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
793
830
  */
794
- getApps(options) {
795
- return this.httpClient.request({ method: "GET", url: uriEncoding `apps`, options: options });
831
+ createAlarm(alarm, queryParams, options) {
832
+ return this.httpClient.request({ method: "POST", url: uriEncoding `alarm`, queryParams: queryParams, data: alarm, options: options });
796
833
  }
797
834
  /**
798
- * HTTP GET /apps/consoleConfig
799
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
835
+ * HTTP GET /alarm
836
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
800
837
  */
801
- getConsoleConfig(options) {
802
- return this.httpClient.request({ method: "GET", url: uriEncoding `apps/consoleConfig`, options: options });
838
+ getAlarms(queryParams, options) {
839
+ return this.httpClient.request({ method: "GET", url: uriEncoding `alarm`, queryParams: queryParams, options: options });
803
840
  }
804
841
  /**
805
- * HTTP GET /apps/info
806
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
842
+ * HTTP DELETE /alarm
843
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
807
844
  */
808
- getAppInfos(options) {
809
- return this.httpClient.request({ method: "GET", url: uriEncoding `apps/info`, options: options });
845
+ removeAlarms(ids, options) {
846
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm`, data: ids, options: options });
810
847
  }
811
- }
812
- export class AssetPredictedDatapointResourceClient {
813
- constructor(httpClient) {
814
- this.httpClient = httpClient;
848
+ /**
849
+ * HTTP PUT /alarm/assets
850
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
851
+ */
852
+ setAssetLinks(links, options) {
853
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/assets`, data: links, options: options });
815
854
  }
816
855
  /**
817
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
818
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
856
+ * HTTP GET /alarm/{alarmId}
857
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
819
858
  */
820
- getPredictedDatapoints(assetId, attributeName, query, options) {
821
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: query, options: options });
859
+ getAlarm(alarmId, options) {
860
+ return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}`, options: options });
822
861
  }
823
862
  /**
824
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
825
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
863
+ * HTTP DELETE /alarm/{alarmId}
864
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
826
865
  */
827
- writePredictedDatapoints(assetId, attributeName, predictedDatapoints, options) {
828
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: predictedDatapoints, options: options });
866
+ removeAlarm(alarmId, options) {
867
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm/${alarmId}`, options: options });
868
+ }
869
+ /**
870
+ * HTTP PUT /alarm/{alarmId}
871
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
872
+ */
873
+ updateAlarm(alarmId, alarm, options) {
874
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/${alarmId}`, data: alarm, options: options });
875
+ }
876
+ /**
877
+ * HTTP GET /alarm/{alarmId}/assets
878
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
879
+ */
880
+ getAssetLinks(alarmId, queryParams, options) {
881
+ return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}/assets`, queryParams: queryParams, options: options });
829
882
  }
830
883
  }
831
884
  export class GatewayClientResourceClient {
@@ -875,208 +928,155 @@ export class GatewayClientResourceClient {
875
928
  return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/status/${realm}`, options: options });
876
929
  }
877
930
  }
878
- export class FlowResourceClient {
931
+ export class ConsoleResourceClient {
879
932
  constructor(httpClient) {
880
933
  this.httpClient = httpClient;
881
934
  }
882
935
  /**
883
- * HTTP GET /flow
884
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
885
- */
886
- getAllNodeDefinitions(options) {
887
- return this.httpClient.request({ method: "GET", url: uriEncoding `flow`, options: options });
888
- }
889
- /**
890
- * HTTP GET /flow/{name}
891
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
892
- */
893
- getNodeDefinition(name, options) {
894
- return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${name}`, options: options });
895
- }
896
- /**
897
- * HTTP GET /flow/{type}
898
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
936
+ * HTTP POST /console/register
937
+ * Java method: org.openremote.model.console.ConsoleResource.register
899
938
  */
900
- getAllNodeDefinitionsByType(type, options) {
901
- return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${type}`, options: options });
939
+ register(consoleRegistration, options) {
940
+ return this.httpClient.request({ method: "POST", url: uriEncoding `console/register`, data: consoleRegistration, options: options });
902
941
  }
903
942
  }
904
- export class RealmResourceClient {
943
+ export class AgentResourceClient {
905
944
  constructor(httpClient) {
906
945
  this.httpClient = httpClient;
907
946
  }
908
947
  /**
909
- * HTTP POST /realm
910
- * Java method: org.openremote.model.security.RealmResource.create
911
- */
912
- create(realm, options) {
913
- return this.httpClient.request({ method: "POST", url: uriEncoding `realm`, data: realm, options: options });
914
- }
915
- /**
916
- * HTTP GET /realm
917
- * Java method: org.openremote.model.security.RealmResource.getAll
918
- */
919
- getAll(options) {
920
- return this.httpClient.request({ method: "GET", url: uriEncoding `realm`, options: options });
921
- }
922
- /**
923
- * HTTP GET /realm/accessible
924
- * Java method: org.openremote.model.security.RealmResource.getAccessible
925
- */
926
- getAccessible(options) {
927
- return this.httpClient.request({ method: "GET", url: uriEncoding `realm/accessible`, options: options });
928
- }
929
- /**
930
- * HTTP DELETE /realm/{name}
931
- * Java method: org.openremote.model.security.RealmResource.delete
948
+ * HTTP GET /agent/assetDiscovery/{agentId}
949
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
932
950
  */
933
- delete(name, options) {
934
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `realm/${name}`, options: options });
951
+ doProtocolAssetDiscovery(agentId, queryParams, options) {
952
+ return this.httpClient.request({ method: "GET", url: uriEncoding `agent/assetDiscovery/${agentId}`, queryParams: queryParams, options: options });
935
953
  }
936
954
  /**
937
- * HTTP GET /realm/{name}
938
- * Java method: org.openremote.model.security.RealmResource.get
955
+ * HTTP POST /agent/assetImport/{agentId}
956
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
939
957
  */
940
- get(name, options) {
941
- return this.httpClient.request({ method: "GET", url: uriEncoding `realm/${name}`, options: options });
958
+ doProtocolAssetImport(agentId, fileInfo, queryParams, options) {
959
+ return this.httpClient.request({ method: "POST", url: uriEncoding `agent/assetImport/${agentId}`, queryParams: queryParams, data: fileInfo, options: options });
942
960
  }
943
961
  /**
944
- * HTTP PUT /realm/{name}
945
- * Java method: org.openremote.model.security.RealmResource.update
962
+ * HTTP GET /agent/instanceDiscovery/{agentType}
963
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
946
964
  */
947
- update(name, realm, options) {
948
- return this.httpClient.request({ method: "PUT", url: uriEncoding `realm/${name}`, data: realm, options: options });
965
+ doProtocolInstanceDiscovery(agentType, queryParams, options) {
966
+ return this.httpClient.request({ method: "GET", url: uriEncoding `agent/instanceDiscovery/${agentType}`, queryParams: queryParams, options: options });
949
967
  }
950
968
  }
951
- export class AssetResourceClient {
969
+ export class RealmResourceClient {
952
970
  constructor(httpClient) {
953
971
  this.httpClient = httpClient;
954
972
  }
955
973
  /**
956
- * HTTP POST /asset
957
- * Java method: org.openremote.model.asset.AssetResource.create
958
- */
959
- create(asset, options) {
960
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset`, data: asset, options: options });
961
- }
962
- /**
963
- * HTTP DELETE /asset
964
- * Java method: org.openremote.model.asset.AssetResource.delete
965
- */
966
- delete(queryParams, options) {
967
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset`, queryParams: queryParams, options: options });
968
- }
969
- /**
970
- * HTTP PUT /asset/attributes
971
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
972
- */
973
- writeAttributeValues(attributeStates, options) {
974
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes`, data: attributeStates, options: options });
975
- }
976
- /**
977
- * HTTP PUT /asset/attributes/timestamp
978
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
979
- */
980
- writeAttributeEvents(attributeEvents, options) {
981
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes/timestamp`, data: attributeEvents, options: options });
982
- }
983
- /**
984
- * HTTP DELETE /asset/parent
985
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
974
+ * HTTP POST /realm
975
+ * Java method: org.openremote.model.security.RealmResource.create
986
976
  */
987
- updateNoneParent(queryParams, options) {
988
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/parent`, queryParams: queryParams, options: options });
977
+ create(realm, options) {
978
+ return this.httpClient.request({ method: "POST", url: uriEncoding `realm`, data: realm, options: options });
989
979
  }
990
980
  /**
991
- * HTTP GET /asset/partial/{assetId}
992
- * Java method: org.openremote.model.asset.AssetResource.getPartial
981
+ * HTTP GET /realm
982
+ * Java method: org.openremote.model.security.RealmResource.getAll
993
983
  */
994
- getPartial(assetId, options) {
995
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/partial/${assetId}`, options: options });
984
+ getAll(options) {
985
+ return this.httpClient.request({ method: "GET", url: uriEncoding `realm`, options: options });
996
986
  }
997
987
  /**
998
- * HTTP POST /asset/query
999
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
988
+ * HTTP GET /realm/accessible
989
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
1000
990
  */
1001
- queryAssets(query, options) {
1002
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/query`, data: query, options: options });
991
+ getAccessible(options) {
992
+ return this.httpClient.request({ method: "GET", url: uriEncoding `realm/accessible`, options: options });
1003
993
  }
1004
994
  /**
1005
- * HTTP GET /asset/user/current
1006
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
995
+ * HTTP DELETE /realm/{name}
996
+ * Java method: org.openremote.model.security.RealmResource.delete
1007
997
  */
1008
- getCurrentUserAssets(options) {
1009
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/current`, options: options });
998
+ delete(name, options) {
999
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `realm/${name}`, options: options });
1010
1000
  }
1011
1001
  /**
1012
- * HTTP POST /asset/user/link
1013
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
1002
+ * HTTP GET /realm/{name}
1003
+ * Java method: org.openremote.model.security.RealmResource.get
1014
1004
  */
1015
- createUserAssetLinks(userAssets, options) {
1016
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link`, data: userAssets, options: options });
1005
+ get(name, options) {
1006
+ return this.httpClient.request({ method: "GET", url: uriEncoding `realm/${name}`, options: options });
1017
1007
  }
1018
1008
  /**
1019
- * HTTP GET /asset/user/link
1020
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
1009
+ * HTTP PUT /realm/{name}
1010
+ * Java method: org.openremote.model.security.RealmResource.update
1021
1011
  */
1022
- getUserAssetLinks(queryParams, options) {
1023
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/link`, queryParams: queryParams, options: options });
1012
+ update(name, realm, options) {
1013
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `realm/${name}`, data: realm, options: options });
1014
+ }
1015
+ }
1016
+ export class FlowResourceClient {
1017
+ constructor(httpClient) {
1018
+ this.httpClient = httpClient;
1024
1019
  }
1025
1020
  /**
1026
- * HTTP POST /asset/user/link/delete
1027
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
1021
+ * HTTP GET /flow
1022
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
1028
1023
  */
1029
- deleteUserAssetLinks(userAssets, options) {
1030
- return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link/delete`, data: userAssets, options: options });
1024
+ getAllNodeDefinitions(options) {
1025
+ return this.httpClient.request({ method: "GET", url: uriEncoding `flow`, options: options });
1031
1026
  }
1032
1027
  /**
1033
- * HTTP DELETE /asset/user/link/{realm}/{userId}
1034
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
1028
+ * HTTP GET /flow/{name}
1029
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
1035
1030
  */
1036
- deleteAllUserAssetLinks(realm, userId, options) {
1037
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}`, options: options });
1031
+ getNodeDefinition(name, options) {
1032
+ return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${name}`, options: options });
1038
1033
  }
1039
1034
  /**
1040
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
1041
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
1035
+ * HTTP GET /flow/{type}
1036
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
1042
1037
  */
1043
- deleteUserAssetLink(realm, userId, assetId, options) {
1044
- return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}/${assetId}`, options: options });
1038
+ getAllNodeDefinitionsByType(type, options) {
1039
+ return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${type}`, options: options });
1040
+ }
1041
+ }
1042
+ export class GatewayServiceResourceClient {
1043
+ constructor(httpClient) {
1044
+ this.httpClient = httpClient;
1045
1045
  }
1046
1046
  /**
1047
- * HTTP GET /asset/{assetId}
1048
- * Java method: org.openremote.model.asset.AssetResource.get
1047
+ * HTTP POST /gateway/tunnel
1048
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
1049
1049
  */
1050
- get(assetId, options) {
1051
- return this.httpClient.request({ method: "GET", url: uriEncoding `asset/${assetId}`, options: options });
1050
+ startTunnel(tunnelInfo, options) {
1051
+ return this.httpClient.request({ method: "POST", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
1052
1052
  }
1053
1053
  /**
1054
- * HTTP PUT /asset/{assetId}
1055
- * Java method: org.openremote.model.asset.AssetResource.update
1054
+ * HTTP DELETE /gateway/tunnel
1055
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
1056
1056
  */
1057
- update(assetId, asset, options) {
1058
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}`, data: asset, options: options });
1057
+ stopTunnel(tunnelInfo, options) {
1058
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
1059
1059
  }
1060
1060
  /**
1061
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
1062
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
1061
+ * HTTP GET /gateway/tunnel/{realm}
1062
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
1063
1063
  */
1064
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId, attributeName, value, options) {
1065
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}`, data: value, options: options });
1064
+ getAllActiveTunnelInfos(realm, options) {
1065
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}`, options: options });
1066
1066
  }
1067
1067
  /**
1068
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
1069
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
1068
+ * HTTP GET /gateway/tunnel/{realm}/{id}
1069
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
1070
1070
  */
1071
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId, attributeName, timestamp, value, options) {
1072
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}/${timestamp}`, data: value, options: options });
1071
+ getGatewayActiveTunnelInfos(realm, id, options) {
1072
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}`, options: options });
1073
1073
  }
1074
1074
  /**
1075
- * HTTP PUT /asset/{parentAssetId}/child
1076
- * Java method: org.openremote.model.asset.AssetResource.updateParent
1075
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
1076
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
1077
1077
  */
1078
- updateParent(parentAssetId, queryParams, options) {
1079
- return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${parentAssetId}/child`, queryParams: queryParams, options: options });
1078
+ getActiveTunnelInfo(realm, id, target, targetPort, options) {
1079
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}/${target}/${targetPort}`, options: options });
1080
1080
  }
1081
1081
  }
1082
1082
  function uriEncoding(template, ...substitutions) {
@@ -1091,91 +1091,91 @@ function uriEncoding(template, ...substitutions) {
1091
1091
  // Added by 'AggregatedApiClient' extension
1092
1092
  export class ApiClient {
1093
1093
  constructor(baseURL, axiosInstance = axios.create()) {
1094
- this._notificationResource = new AxiosNotificationResourceClient(baseURL, axiosInstance);
1095
- this._configurationResource = new AxiosConfigurationResourceClient(baseURL, axiosInstance);
1096
- this._mapResource = new AxiosMapResourceClient(baseURL, axiosInstance);
1097
- this._alarmResource = new AxiosAlarmResourceClient(baseURL, axiosInstance);
1098
- this._syslogResource = new AxiosSyslogResourceClient(baseURL, axiosInstance);
1099
- this._gatewayServiceResource = new AxiosGatewayServiceResourceClient(baseURL, axiosInstance);
1100
- this._dashboardResource = new AxiosDashboardResourceClient(baseURL, axiosInstance);
1101
- this._consoleResource = new AxiosConsoleResourceClient(baseURL, axiosInstance);
1102
- this._statusResource = new AxiosStatusResourceClient(baseURL, axiosInstance);
1103
1094
  this._provisioningResource = new AxiosProvisioningResourceClient(baseURL, axiosInstance);
1095
+ this._assetPredictedDatapointResource = new AxiosAssetPredictedDatapointResourceClient(baseURL, axiosInstance);
1096
+ this._dashboardResource = new AxiosDashboardResourceClient(baseURL, axiosInstance);
1097
+ this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1098
+ this._configurationResource = new AxiosConfigurationResourceClient(baseURL, axiosInstance);
1099
+ this._appResource = new AxiosAppResourceClient(baseURL, axiosInstance);
1100
+ this._notificationResource = new AxiosNotificationResourceClient(baseURL, axiosInstance);
1104
1101
  this._assetModelResource = new AxiosAssetModelResourceClient(baseURL, axiosInstance);
1105
- this._userResource = new AxiosUserResourceClient(baseURL, axiosInstance);
1106
- this._agentResource = new AxiosAgentResourceClient(baseURL, axiosInstance);
1107
1102
  this._rulesResource = new AxiosRulesResourceClient(baseURL, axiosInstance);
1103
+ this._syslogResource = new AxiosSyslogResourceClient(baseURL, axiosInstance);
1104
+ this._mapResource = new AxiosMapResourceClient(baseURL, axiosInstance);
1105
+ this._userResource = new AxiosUserResourceClient(baseURL, axiosInstance);
1106
+ this._statusResource = new AxiosStatusResourceClient(baseURL, axiosInstance);
1108
1107
  this._assetDatapointResource = new AxiosAssetDatapointResourceClient(baseURL, axiosInstance);
1109
- this._appResource = new AxiosAppResourceClient(baseURL, axiosInstance);
1110
- this._assetPredictedDatapointResource = new AxiosAssetPredictedDatapointResourceClient(baseURL, axiosInstance);
1108
+ this._alarmResource = new AxiosAlarmResourceClient(baseURL, axiosInstance);
1111
1109
  this._gatewayClientResource = new AxiosGatewayClientResourceClient(baseURL, axiosInstance);
1112
- this._flowResource = new AxiosFlowResourceClient(baseURL, axiosInstance);
1110
+ this._consoleResource = new AxiosConsoleResourceClient(baseURL, axiosInstance);
1111
+ this._agentResource = new AxiosAgentResourceClient(baseURL, axiosInstance);
1113
1112
  this._realmResource = new AxiosRealmResourceClient(baseURL, axiosInstance);
1114
- this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1113
+ this._flowResource = new AxiosFlowResourceClient(baseURL, axiosInstance);
1114
+ this._gatewayServiceResource = new AxiosGatewayServiceResourceClient(baseURL, axiosInstance);
1115
1115
  this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1116
1116
  }
1117
- get NotificationResource() {
1118
- return this._notificationResource;
1119
- }
1120
- get ConfigurationResource() {
1121
- return this._configurationResource;
1122
- }
1123
- get MapResource() {
1124
- return this._mapResource;
1125
- }
1126
- get AlarmResource() {
1127
- return this._alarmResource;
1128
- }
1129
- get SyslogResource() {
1130
- return this._syslogResource;
1117
+ get ProvisioningResource() {
1118
+ return this._provisioningResource;
1131
1119
  }
1132
- get GatewayServiceResource() {
1133
- return this._gatewayServiceResource;
1120
+ get AssetPredictedDatapointResource() {
1121
+ return this._assetPredictedDatapointResource;
1134
1122
  }
1135
1123
  get DashboardResource() {
1136
1124
  return this._dashboardResource;
1137
1125
  }
1138
- get ConsoleResource() {
1139
- return this._consoleResource;
1126
+ get AssetResource() {
1127
+ return this._assetResource;
1140
1128
  }
1141
- get StatusResource() {
1142
- return this._statusResource;
1129
+ get ConfigurationResource() {
1130
+ return this._configurationResource;
1143
1131
  }
1144
- get ProvisioningResource() {
1145
- return this._provisioningResource;
1132
+ get AppResource() {
1133
+ return this._appResource;
1134
+ }
1135
+ get NotificationResource() {
1136
+ return this._notificationResource;
1146
1137
  }
1147
1138
  get AssetModelResource() {
1148
1139
  return this._assetModelResource;
1149
1140
  }
1141
+ get RulesResource() {
1142
+ return this._rulesResource;
1143
+ }
1144
+ get SyslogResource() {
1145
+ return this._syslogResource;
1146
+ }
1147
+ get MapResource() {
1148
+ return this._mapResource;
1149
+ }
1150
1150
  get UserResource() {
1151
1151
  return this._userResource;
1152
1152
  }
1153
- get AgentResource() {
1154
- return this._agentResource;
1155
- }
1156
- get RulesResource() {
1157
- return this._rulesResource;
1153
+ get StatusResource() {
1154
+ return this._statusResource;
1158
1155
  }
1159
1156
  get AssetDatapointResource() {
1160
1157
  return this._assetDatapointResource;
1161
1158
  }
1162
- get AppResource() {
1163
- return this._appResource;
1164
- }
1165
- get AssetPredictedDatapointResource() {
1166
- return this._assetPredictedDatapointResource;
1159
+ get AlarmResource() {
1160
+ return this._alarmResource;
1167
1161
  }
1168
1162
  get GatewayClientResource() {
1169
1163
  return this._gatewayClientResource;
1170
1164
  }
1171
- get FlowResource() {
1172
- return this._flowResource;
1165
+ get ConsoleResource() {
1166
+ return this._consoleResource;
1167
+ }
1168
+ get AgentResource() {
1169
+ return this._agentResource;
1173
1170
  }
1174
1171
  get RealmResource() {
1175
1172
  return this._realmResource;
1176
1173
  }
1177
- get AssetResource() {
1178
- return this._assetResource;
1174
+ get FlowResource() {
1175
+ return this._flowResource;
1176
+ }
1177
+ get GatewayServiceResource() {
1178
+ return this._gatewayServiceResource;
1179
1179
  }
1180
1180
  }
1181
1181
  // Added by 'AxiosClientExtension' extension
@@ -1212,67 +1212,67 @@ class AxiosHttpClient {
1212
1212
  });
1213
1213
  }
1214
1214
  }
1215
- export class AxiosNotificationResourceClient extends NotificationResourceClient {
1215
+ export class AxiosProvisioningResourceClient extends ProvisioningResourceClient {
1216
1216
  constructor(baseURL, axiosInstance = axios.create()) {
1217
1217
  axiosInstance.defaults.baseURL = baseURL;
1218
1218
  super(new AxiosHttpClient(axiosInstance));
1219
1219
  }
1220
1220
  }
1221
- export class AxiosConfigurationResourceClient extends ConfigurationResourceClient {
1221
+ export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient {
1222
1222
  constructor(baseURL, axiosInstance = axios.create()) {
1223
1223
  axiosInstance.defaults.baseURL = baseURL;
1224
1224
  super(new AxiosHttpClient(axiosInstance));
1225
1225
  }
1226
1226
  }
1227
- export class AxiosMapResourceClient extends MapResourceClient {
1227
+ export class AxiosDashboardResourceClient extends DashboardResourceClient {
1228
1228
  constructor(baseURL, axiosInstance = axios.create()) {
1229
1229
  axiosInstance.defaults.baseURL = baseURL;
1230
1230
  super(new AxiosHttpClient(axiosInstance));
1231
1231
  }
1232
1232
  }
1233
- export class AxiosAlarmResourceClient extends AlarmResourceClient {
1233
+ export class AxiosAssetResourceClient extends AssetResourceClient {
1234
1234
  constructor(baseURL, axiosInstance = axios.create()) {
1235
1235
  axiosInstance.defaults.baseURL = baseURL;
1236
1236
  super(new AxiosHttpClient(axiosInstance));
1237
1237
  }
1238
1238
  }
1239
- export class AxiosSyslogResourceClient extends SyslogResourceClient {
1239
+ export class AxiosConfigurationResourceClient extends ConfigurationResourceClient {
1240
1240
  constructor(baseURL, axiosInstance = axios.create()) {
1241
1241
  axiosInstance.defaults.baseURL = baseURL;
1242
1242
  super(new AxiosHttpClient(axiosInstance));
1243
1243
  }
1244
1244
  }
1245
- export class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient {
1245
+ export class AxiosAppResourceClient extends AppResourceClient {
1246
1246
  constructor(baseURL, axiosInstance = axios.create()) {
1247
1247
  axiosInstance.defaults.baseURL = baseURL;
1248
1248
  super(new AxiosHttpClient(axiosInstance));
1249
1249
  }
1250
1250
  }
1251
- export class AxiosDashboardResourceClient extends DashboardResourceClient {
1251
+ export class AxiosNotificationResourceClient extends NotificationResourceClient {
1252
1252
  constructor(baseURL, axiosInstance = axios.create()) {
1253
1253
  axiosInstance.defaults.baseURL = baseURL;
1254
1254
  super(new AxiosHttpClient(axiosInstance));
1255
1255
  }
1256
1256
  }
1257
- export class AxiosConsoleResourceClient extends ConsoleResourceClient {
1257
+ export class AxiosAssetModelResourceClient extends AssetModelResourceClient {
1258
1258
  constructor(baseURL, axiosInstance = axios.create()) {
1259
1259
  axiosInstance.defaults.baseURL = baseURL;
1260
1260
  super(new AxiosHttpClient(axiosInstance));
1261
1261
  }
1262
1262
  }
1263
- export class AxiosStatusResourceClient extends StatusResourceClient {
1263
+ export class AxiosRulesResourceClient extends RulesResourceClient {
1264
1264
  constructor(baseURL, axiosInstance = axios.create()) {
1265
1265
  axiosInstance.defaults.baseURL = baseURL;
1266
1266
  super(new AxiosHttpClient(axiosInstance));
1267
1267
  }
1268
1268
  }
1269
- export class AxiosProvisioningResourceClient extends ProvisioningResourceClient {
1269
+ export class AxiosSyslogResourceClient extends SyslogResourceClient {
1270
1270
  constructor(baseURL, axiosInstance = axios.create()) {
1271
1271
  axiosInstance.defaults.baseURL = baseURL;
1272
1272
  super(new AxiosHttpClient(axiosInstance));
1273
1273
  }
1274
1274
  }
1275
- export class AxiosAssetModelResourceClient extends AssetModelResourceClient {
1275
+ export class AxiosMapResourceClient extends MapResourceClient {
1276
1276
  constructor(baseURL, axiosInstance = axios.create()) {
1277
1277
  axiosInstance.defaults.baseURL = baseURL;
1278
1278
  super(new AxiosHttpClient(axiosInstance));
@@ -1284,55 +1284,55 @@ export class AxiosUserResourceClient extends UserResourceClient {
1284
1284
  super(new AxiosHttpClient(axiosInstance));
1285
1285
  }
1286
1286
  }
1287
- export class AxiosAgentResourceClient extends AgentResourceClient {
1287
+ export class AxiosStatusResourceClient extends StatusResourceClient {
1288
1288
  constructor(baseURL, axiosInstance = axios.create()) {
1289
1289
  axiosInstance.defaults.baseURL = baseURL;
1290
1290
  super(new AxiosHttpClient(axiosInstance));
1291
1291
  }
1292
1292
  }
1293
- export class AxiosRulesResourceClient extends RulesResourceClient {
1293
+ export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient {
1294
1294
  constructor(baseURL, axiosInstance = axios.create()) {
1295
1295
  axiosInstance.defaults.baseURL = baseURL;
1296
1296
  super(new AxiosHttpClient(axiosInstance));
1297
1297
  }
1298
1298
  }
1299
- export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient {
1299
+ export class AxiosAlarmResourceClient extends AlarmResourceClient {
1300
1300
  constructor(baseURL, axiosInstance = axios.create()) {
1301
1301
  axiosInstance.defaults.baseURL = baseURL;
1302
1302
  super(new AxiosHttpClient(axiosInstance));
1303
1303
  }
1304
1304
  }
1305
- export class AxiosAppResourceClient extends AppResourceClient {
1305
+ export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient {
1306
1306
  constructor(baseURL, axiosInstance = axios.create()) {
1307
1307
  axiosInstance.defaults.baseURL = baseURL;
1308
1308
  super(new AxiosHttpClient(axiosInstance));
1309
1309
  }
1310
1310
  }
1311
- export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient {
1311
+ export class AxiosConsoleResourceClient extends ConsoleResourceClient {
1312
1312
  constructor(baseURL, axiosInstance = axios.create()) {
1313
1313
  axiosInstance.defaults.baseURL = baseURL;
1314
1314
  super(new AxiosHttpClient(axiosInstance));
1315
1315
  }
1316
1316
  }
1317
- export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient {
1317
+ export class AxiosAgentResourceClient extends AgentResourceClient {
1318
1318
  constructor(baseURL, axiosInstance = axios.create()) {
1319
1319
  axiosInstance.defaults.baseURL = baseURL;
1320
1320
  super(new AxiosHttpClient(axiosInstance));
1321
1321
  }
1322
1322
  }
1323
- export class AxiosFlowResourceClient extends FlowResourceClient {
1323
+ export class AxiosRealmResourceClient extends RealmResourceClient {
1324
1324
  constructor(baseURL, axiosInstance = axios.create()) {
1325
1325
  axiosInstance.defaults.baseURL = baseURL;
1326
1326
  super(new AxiosHttpClient(axiosInstance));
1327
1327
  }
1328
1328
  }
1329
- export class AxiosRealmResourceClient extends RealmResourceClient {
1329
+ export class AxiosFlowResourceClient extends FlowResourceClient {
1330
1330
  constructor(baseURL, axiosInstance = axios.create()) {
1331
1331
  axiosInstance.defaults.baseURL = baseURL;
1332
1332
  super(new AxiosHttpClient(axiosInstance));
1333
1333
  }
1334
1334
  }
1335
- export class AxiosAssetResourceClient extends AssetResourceClient {
1335
+ export class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient {
1336
1336
  constructor(baseURL, axiosInstance = axios.create()) {
1337
1337
  axiosInstance.defaults.baseURL = baseURL;
1338
1338
  super(new AxiosHttpClient(axiosInstance));