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