@openremote/rest 1.10.0-snapshot.20251007132300 → 1.10.0-snapshot.20251010093013

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,214 +9,271 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class RealmResourceClient<O> {
12
+ export declare class SyslogResourceClient<O> {
13
13
  protected httpClient: HttpClient<O>;
14
14
  constructor(httpClient: HttpClient<O>);
15
15
  /**
16
- * HTTP POST /realm
17
- * Java method: org.openremote.model.security.RealmResource.create
18
- */
19
- create(realm: Model.Realm, options?: O): RestResponse<void>;
20
- /**
21
- * HTTP GET /realm
22
- * Java method: org.openremote.model.security.RealmResource.getAll
23
- */
24
- getAll(options?: O): RestResponse<Model.Realm[]>;
25
- /**
26
- * HTTP GET /realm/accessible
27
- * Java method: org.openremote.model.security.RealmResource.getAccessible
16
+ * HTTP GET /syslog/config
17
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
28
18
  */
29
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
19
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
30
20
  /**
31
- * HTTP DELETE /realm/{name}
32
- * Java method: org.openremote.model.security.RealmResource.delete
21
+ * HTTP PUT /syslog/config
22
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
33
23
  */
34
- delete(name: string, options?: O): RestResponse<void>;
24
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
35
25
  /**
36
- * HTTP GET /realm/{name}
37
- * Java method: org.openremote.model.security.RealmResource.get
26
+ * HTTP DELETE /syslog/event
27
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
38
28
  */
39
- get(name: string, options?: O): RestResponse<Model.Realm>;
29
+ clearEvents(options?: O): RestResponse<void>;
40
30
  /**
41
- * HTTP PUT /realm/{name}
42
- * Java method: org.openremote.model.security.RealmResource.update
31
+ * HTTP GET /syslog/event
32
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
43
33
  */
44
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
34
+ getEvents(queryParams?: {
35
+ level?: Model.SyslogLevel;
36
+ per_page?: number;
37
+ page?: number;
38
+ from?: number;
39
+ to?: number;
40
+ category?: Model.SyslogCategory[];
41
+ subCategory?: string[];
42
+ }, options?: O): RestResponse<any>;
45
43
  }
46
- export declare class DashboardResourceClient<O> {
44
+ export declare class ProvisioningResourceClient<O> {
47
45
  protected httpClient: HttpClient<O>;
48
46
  constructor(httpClient: HttpClient<O>);
49
47
  /**
50
- * HTTP POST /dashboard
51
- * Java method: org.openremote.model.dashboard.DashboardResource.create
48
+ * HTTP POST /provisioning
49
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
52
50
  */
53
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
51
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
54
52
  /**
55
- * HTTP PUT /dashboard
56
- * Java method: org.openremote.model.dashboard.DashboardResource.update
53
+ * HTTP GET /provisioning
54
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
57
55
  */
58
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
56
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
59
57
  /**
60
- * HTTP GET /dashboard/all/{realm}
61
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
58
+ * HTTP DELETE /provisioning/{id}
59
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
62
60
  */
63
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
61
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
64
62
  /**
65
- * HTTP POST /dashboard/query
66
- * Java method: org.openremote.model.dashboard.DashboardResource.query
63
+ * HTTP PUT /provisioning/{id}
64
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
67
65
  */
68
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
66
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
67
+ }
68
+ export declare class AssetPredictedDatapointResourceClient<O> {
69
+ protected httpClient: HttpClient<O>;
70
+ constructor(httpClient: HttpClient<O>);
69
71
  /**
70
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
71
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
72
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
73
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
72
74
  */
73
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
75
+ getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
74
76
  /**
75
- * HTTP GET /dashboard/{realm}/{dashboardId}
76
- * Java method: org.openremote.model.dashboard.DashboardResource.get
77
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
78
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
77
79
  */
78
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
80
+ writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
79
81
  }
80
- export declare class SyslogResourceClient<O> {
82
+ export declare class MapResourceClient<O> {
81
83
  protected httpClient: HttpClient<O>;
82
84
  constructor(httpClient: HttpClient<O>);
83
85
  /**
84
- * HTTP GET /syslog/config
85
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
86
+ * HTTP GET /map
87
+ * Java method: org.openremote.model.map.MapResource.getSettings
86
88
  */
87
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
89
+ getSettings(options?: O): RestResponse<{
90
+ [id: string]: unknown;
91
+ }>;
88
92
  /**
89
- * HTTP PUT /syslog/config
90
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
93
+ * HTTP PUT /map
94
+ * Java method: org.openremote.model.map.MapResource.saveSettings
91
95
  */
92
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
96
+ saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
97
+ [id: string]: unknown;
98
+ }>;
93
99
  /**
94
- * HTTP DELETE /syslog/event
95
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
100
+ * HTTP DELETE /map/deleteMap
101
+ * Java method: org.openremote.model.map.MapResource.deleteMap
96
102
  */
97
- clearEvents(options?: O): RestResponse<void>;
103
+ deleteMap(options?: O): RestResponse<{
104
+ [id: string]: unknown;
105
+ }>;
98
106
  /**
99
- * HTTP GET /syslog/event
100
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
107
+ * HTTP GET /map/getCustomMapInfo
108
+ * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
101
109
  */
102
- getEvents(queryParams?: {
103
- level?: Model.SyslogLevel;
104
- per_page?: number;
105
- page?: number;
106
- from?: number;
107
- to?: number;
108
- category?: Model.SyslogCategory[];
109
- subCategory?: string[];
110
- }, options?: O): RestResponse<any>;
110
+ getCustomMapInfo(options?: O): RestResponse<{
111
+ [id: string]: unknown;
112
+ }>;
113
+ /**
114
+ * HTTP GET /map/js
115
+ * Java method: org.openremote.model.map.MapResource.getSettingsJs
116
+ */
117
+ getSettingsJs(options?: O): RestResponse<{
118
+ [id: string]: unknown;
119
+ }>;
120
+ /**
121
+ * HTTP GET /map/tile/{zoom}/{column}/{row}
122
+ * Java method: org.openremote.model.map.MapResource.getTile
123
+ */
124
+ getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
125
+ /**
126
+ * HTTP POST /map/upload
127
+ * Java method: org.openremote.model.map.MapResource.uploadMap
128
+ */
129
+ uploadMap(queryParams?: {
130
+ filename?: string;
131
+ }, options?: O): RestResponse<{
132
+ [id: string]: unknown;
133
+ }>;
111
134
  }
112
- export declare class AssetResourceClient<O> {
135
+ export declare class GatewayClientResourceClient<O> {
113
136
  protected httpClient: HttpClient<O>;
114
137
  constructor(httpClient: HttpClient<O>);
115
138
  /**
116
- * HTTP POST /asset
117
- * Java method: org.openremote.model.asset.AssetResource.create
139
+ * HTTP DELETE /gateway/connection
140
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
118
141
  */
119
- create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
142
+ deleteConnections(queryParams?: {
143
+ realm?: string[];
144
+ }, options?: O): RestResponse<void>;
120
145
  /**
121
- * HTTP DELETE /asset
122
- * Java method: org.openremote.model.asset.AssetResource.delete
146
+ * HTTP GET /gateway/connection
147
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
123
148
  */
124
- delete(queryParams?: {
125
- assetId?: string[];
126
- }, options?: O): RestResponse<void>;
149
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
127
150
  /**
128
- * HTTP PUT /asset/attributes
129
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
151
+ * HTTP DELETE /gateway/connection/{realm}
152
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
130
153
  */
131
- writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
154
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
132
155
  /**
133
- * HTTP PUT /asset/attributes/timestamp
134
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
156
+ * HTTP GET /gateway/connection/{realm}
157
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
135
158
  */
136
- writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
159
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
137
160
  /**
138
- * HTTP DELETE /asset/parent
139
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
161
+ * HTTP PUT /gateway/connection/{realm}
162
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
140
163
  */
141
- updateNoneParent(queryParams?: {
142
- assetIds?: string[];
143
- }, options?: O): RestResponse<void>;
164
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
144
165
  /**
145
- * HTTP GET /asset/partial/{assetId}
146
- * Java method: org.openremote.model.asset.AssetResource.getPartial
166
+ * HTTP GET /gateway/status/{realm}
167
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
147
168
  */
148
- getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
169
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
170
+ }
171
+ export declare class NotificationResourceClient<O> {
172
+ protected httpClient: HttpClient<O>;
173
+ constructor(httpClient: HttpClient<O>);
149
174
  /**
150
- * HTTP POST /asset/query
151
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
175
+ * HTTP GET /notification
176
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
152
177
  */
153
- queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
178
+ getNotifications(queryParams?: {
179
+ id?: number;
180
+ type?: string;
181
+ from?: number;
182
+ to?: number;
183
+ realmId?: string;
184
+ userId?: string;
185
+ assetId?: string;
186
+ }, options?: O): RestResponse<Model.SentNotification[]>;
154
187
  /**
155
- * HTTP POST /asset/tree
156
- * Java method: org.openremote.model.asset.AssetResource.queryAssetTree
188
+ * HTTP DELETE /notification
189
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
157
190
  */
158
- queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
191
+ removeNotifications(queryParams?: {
192
+ id?: number;
193
+ type?: string;
194
+ from?: number;
195
+ to?: number;
196
+ realmId?: string;
197
+ userId?: string;
198
+ assetId?: string;
199
+ }, options?: O): RestResponse<void>;
159
200
  /**
160
- * HTTP GET /asset/user/current
161
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
201
+ * HTTP POST /notification/alert
202
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
162
203
  */
163
- getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
204
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
164
205
  /**
165
- * HTTP POST /asset/user/link
166
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
206
+ * HTTP DELETE /notification/{notificationId}
207
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
167
208
  */
168
- createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
209
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
169
210
  /**
170
- * HTTP GET /asset/user/link
171
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
211
+ * HTTP PUT /notification/{notificationId}/acknowledged
212
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
172
213
  */
173
- getUserAssetLinks(queryParams?: {
174
- realm?: string;
175
- userId?: string;
176
- assetId?: string;
177
- }, options?: O): RestResponse<Model.UserAssetLink[]>;
214
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
215
+ targetId?: string;
216
+ }, options?: O): RestResponse<void>;
178
217
  /**
179
- * HTTP POST /asset/user/link/delete
180
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
218
+ * HTTP PUT /notification/{notificationId}/delivered
219
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
181
220
  */
182
- deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
221
+ notificationDelivered(notificationId: number, queryParams?: {
222
+ targetId?: string;
223
+ }, options?: O): RestResponse<void>;
224
+ }
225
+ export declare class DashboardResourceClient<O> {
226
+ protected httpClient: HttpClient<O>;
227
+ constructor(httpClient: HttpClient<O>);
183
228
  /**
184
- * HTTP DELETE /asset/user/link/{realm}/{userId}
185
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
229
+ * HTTP POST /dashboard
230
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
186
231
  */
187
- deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
232
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
188
233
  /**
189
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
190
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
234
+ * HTTP PUT /dashboard
235
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
191
236
  */
192
- deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
237
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
193
238
  /**
194
- * HTTP GET /asset/{assetId}
195
- * Java method: org.openremote.model.asset.AssetResource.get
239
+ * HTTP GET /dashboard/all/{realm}
240
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
196
241
  */
197
- get(assetId: string, options?: O): RestResponse<Model.Asset>;
242
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
198
243
  /**
199
- * HTTP PUT /asset/{assetId}
200
- * Java method: org.openremote.model.asset.AssetResource.update
244
+ * HTTP POST /dashboard/query
245
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
201
246
  */
202
- update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
247
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
203
248
  /**
204
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
205
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
249
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
250
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
206
251
  */
207
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
252
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
208
253
  /**
209
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
210
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
254
+ * HTTP GET /dashboard/{realm}/{dashboardId}
255
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
211
256
  */
212
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
257
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
258
+ }
259
+ export declare class FlowResourceClient<O> {
260
+ protected httpClient: HttpClient<O>;
261
+ constructor(httpClient: HttpClient<O>);
213
262
  /**
214
- * HTTP PUT /asset/{parentAssetId}/child
215
- * Java method: org.openremote.model.asset.AssetResource.updateParent
263
+ * HTTP GET /flow
264
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
216
265
  */
217
- updateParent(parentAssetId: string, queryParams?: {
218
- assetIds?: string[];
219
- }, options?: O): RestResponse<void>;
266
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
267
+ /**
268
+ * HTTP GET /flow/{name}
269
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
270
+ */
271
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
272
+ /**
273
+ * HTTP GET /flow/{type}
274
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
275
+ */
276
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
220
277
  }
221
278
  export declare class RulesResourceClient<O> {
222
279
  protected httpClient: HttpClient<O>;
@@ -284,150 +341,47 @@ export declare class RulesResourceClient<O> {
284
341
  getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
285
342
  /**
286
343
  * HTTP POST /rules/realm
287
- * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
288
- */
289
- createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
290
- /**
291
- * HTTP GET /rules/realm/for/{realm}
292
- * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
293
- */
294
- getRealmRulesets(realm: string, queryParams?: {
295
- language?: Model.RulesetLang[];
296
- fullyPopulate?: boolean;
297
- }, options?: O): RestResponse<Model.RealmRuleset[]>;
298
- /**
299
- * HTTP DELETE /rules/realm/{id}
300
- * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
301
- */
302
- deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
303
- /**
304
- * HTTP GET /rules/realm/{id}
305
- * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
306
- */
307
- getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
308
- /**
309
- * HTTP PUT /rules/realm/{id}
310
- * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
311
- */
312
- updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
313
- /**
314
- * HTTP DELETE /rules/{id}
315
- * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
316
- */
317
- deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
318
- /**
319
- * HTTP GET /rules/{id}
320
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
321
- */
322
- getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
323
- /**
324
- * HTTP PUT /rules/{id}
325
- * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
326
- */
327
- updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
328
- }
329
- export declare class MapResourceClient<O> {
330
- protected httpClient: HttpClient<O>;
331
- constructor(httpClient: HttpClient<O>);
332
- /**
333
- * HTTP GET /map
334
- * Java method: org.openremote.model.map.MapResource.getSettings
335
- */
336
- getSettings(options?: O): RestResponse<{
337
- [id: string]: unknown;
338
- }>;
339
- /**
340
- * HTTP PUT /map
341
- * Java method: org.openremote.model.map.MapResource.saveSettings
342
- */
343
- saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
344
- [id: string]: unknown;
345
- }>;
346
- /**
347
- * HTTP DELETE /map/deleteMap
348
- * Java method: org.openremote.model.map.MapResource.deleteMap
349
- */
350
- deleteMap(options?: O): RestResponse<{
351
- [id: string]: unknown;
352
- }>;
353
- /**
354
- * HTTP GET /map/getCustomMapInfo
355
- * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
356
- */
357
- getCustomMapInfo(options?: O): RestResponse<{
358
- [id: string]: unknown;
359
- }>;
360
- /**
361
- * HTTP GET /map/js
362
- * Java method: org.openremote.model.map.MapResource.getSettingsJs
363
- */
364
- getSettingsJs(options?: O): RestResponse<{
365
- [id: string]: unknown;
366
- }>;
367
- /**
368
- * HTTP GET /map/tile/{zoom}/{column}/{row}
369
- * Java method: org.openremote.model.map.MapResource.getTile
370
- */
371
- getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
372
- /**
373
- * HTTP POST /map/upload
374
- * Java method: org.openremote.model.map.MapResource.uploadMap
375
- */
376
- uploadMap(queryParams?: {
377
- filename?: string;
378
- }, options?: O): RestResponse<{
379
- [id: string]: unknown;
380
- }>;
381
- }
382
- export declare class GatewayClientResourceClient<O> {
383
- protected httpClient: HttpClient<O>;
384
- constructor(httpClient: HttpClient<O>);
385
- /**
386
- * HTTP DELETE /gateway/connection
387
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
344
+ * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
388
345
  */
389
- deleteConnections(queryParams?: {
390
- realm?: string[];
391
- }, options?: O): RestResponse<void>;
346
+ createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
392
347
  /**
393
- * HTTP GET /gateway/connection
394
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
348
+ * HTTP GET /rules/realm/for/{realm}
349
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
395
350
  */
396
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
351
+ getRealmRulesets(realm: string, queryParams?: {
352
+ language?: Model.RulesetLang[];
353
+ fullyPopulate?: boolean;
354
+ }, options?: O): RestResponse<Model.RealmRuleset[]>;
397
355
  /**
398
- * HTTP DELETE /gateway/connection/{realm}
399
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
356
+ * HTTP DELETE /rules/realm/{id}
357
+ * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
400
358
  */
401
- deleteConnection(realm: string, options?: O): RestResponse<void>;
359
+ deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
402
360
  /**
403
- * HTTP GET /gateway/connection/{realm}
404
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
361
+ * HTTP GET /rules/realm/{id}
362
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
405
363
  */
406
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
364
+ getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
407
365
  /**
408
- * HTTP PUT /gateway/connection/{realm}
409
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
366
+ * HTTP PUT /rules/realm/{id}
367
+ * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
410
368
  */
411
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
369
+ updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
412
370
  /**
413
- * HTTP GET /gateway/status/{realm}
414
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
371
+ * HTTP DELETE /rules/{id}
372
+ * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
415
373
  */
416
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
417
- }
418
- export declare class AssetPredictedDatapointResourceClient<O> {
419
- protected httpClient: HttpClient<O>;
420
- constructor(httpClient: HttpClient<O>);
374
+ deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
421
375
  /**
422
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
423
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
376
+ * HTTP GET /rules/{id}
377
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
424
378
  */
425
- getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
379
+ getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
426
380
  /**
427
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
428
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
381
+ * HTTP PUT /rules/{id}
382
+ * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
429
383
  */
430
- writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
384
+ updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
431
385
  }
432
386
  export declare class ConfigurationResourceClient<O> {
433
387
  protected httpClient: HttpClient<O>;
@@ -455,52 +409,76 @@ export declare class ConfigurationResourceClient<O> {
455
409
  */
456
410
  getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
457
411
  }
458
- export declare class FlowResourceClient<O> {
412
+ export declare class AlarmResourceClient<O> {
459
413
  protected httpClient: HttpClient<O>;
460
414
  constructor(httpClient: HttpClient<O>);
461
415
  /**
462
- * HTTP GET /flow
463
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
416
+ * HTTP POST /alarm
417
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
464
418
  */
465
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
419
+ createAlarm(alarm: Model.Alarm, queryParams?: {
420
+ assetIds?: string[];
421
+ }, options?: O): RestResponse<Model.SentAlarm>;
466
422
  /**
467
- * HTTP GET /flow/{name}
468
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
423
+ * HTTP GET /alarm
424
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
469
425
  */
470
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
426
+ getAlarms(queryParams?: {
427
+ realm?: string;
428
+ status?: Model.AlarmStatus;
429
+ assetId?: string;
430
+ assigneeId?: string;
431
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
471
432
  /**
472
- * HTTP GET /flow/{type}
473
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
433
+ * HTTP DELETE /alarm
434
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
474
435
  */
475
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
476
- }
477
- export declare class ConsoleResourceClient<O> {
478
- protected httpClient: HttpClient<O>;
479
- constructor(httpClient: HttpClient<O>);
436
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
480
437
  /**
481
- * HTTP POST /console/register
482
- * Java method: org.openremote.model.console.ConsoleResource.register
438
+ * HTTP PUT /alarm/assets
439
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
483
440
  */
484
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
441
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
442
+ /**
443
+ * HTTP GET /alarm/{alarmId}
444
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
445
+ */
446
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
447
+ /**
448
+ * HTTP DELETE /alarm/{alarmId}
449
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
450
+ */
451
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
452
+ /**
453
+ * HTTP PUT /alarm/{alarmId}
454
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
455
+ */
456
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
457
+ /**
458
+ * HTTP GET /alarm/{alarmId}/assets
459
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
460
+ */
461
+ getAssetLinks(alarmId: number, queryParams?: {
462
+ realm?: string;
463
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
485
464
  }
486
- export declare class AppResourceClient<O> {
465
+ export declare class StatusResourceClient<O> {
487
466
  protected httpClient: HttpClient<O>;
488
467
  constructor(httpClient: HttpClient<O>);
489
468
  /**
490
- * HTTP GET /apps
491
- * Java method: org.openremote.model.apps.AppResource.getApps
492
- */
493
- getApps(options?: O): RestResponse<string[]>;
494
- /**
495
- * HTTP GET /apps/consoleConfig
496
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
469
+ * HTTP GET /health
470
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
497
471
  */
498
- getConsoleConfig(options?: O): RestResponse<any>;
472
+ getHealthStatus(options?: O): RestResponse<{
473
+ [index: string]: any;
474
+ }>;
499
475
  /**
500
- * HTTP GET /apps/info
501
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
476
+ * HTTP GET /info
477
+ * Java method: org.openremote.model.system.StatusResource.getInfo
502
478
  */
503
- getAppInfos(options?: O): RestResponse<any>;
479
+ getInfo(options?: O): RestResponse<{
480
+ [index: string]: any;
481
+ }>;
504
482
  }
505
483
  export declare class ExternalServiceResourceClient<O> {
506
484
  protected httpClient: HttpClient<O>;
@@ -681,6 +659,35 @@ export declare class UserResourceClient<O> {
681
659
  */
682
660
  get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
683
661
  }
662
+ export declare class GatewayServiceResourceClient<O> {
663
+ protected httpClient: HttpClient<O>;
664
+ constructor(httpClient: HttpClient<O>);
665
+ /**
666
+ * HTTP POST /gateway/tunnel
667
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
668
+ */
669
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
670
+ /**
671
+ * HTTP DELETE /gateway/tunnel
672
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
673
+ */
674
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
675
+ /**
676
+ * HTTP GET /gateway/tunnel/{realm}
677
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
678
+ */
679
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
680
+ /**
681
+ * HTTP GET /gateway/tunnel/{realm}/{id}
682
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
683
+ */
684
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
685
+ /**
686
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
687
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
688
+ */
689
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
690
+ }
684
691
  export declare class AgentResourceClient<O> {
685
692
  protected httpClient: HttpClient<O>;
686
693
  constructor(httpClient: HttpClient<O>);
@@ -707,154 +714,176 @@ export declare class AgentResourceClient<O> {
707
714
  realm?: string;
708
715
  }, options?: O): RestResponse<Model.Agent[]>;
709
716
  }
710
- export declare class StatusResourceClient<O> {
717
+ export declare class AssetResourceClient<O> {
711
718
  protected httpClient: HttpClient<O>;
712
719
  constructor(httpClient: HttpClient<O>);
713
720
  /**
714
- * HTTP GET /health
715
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
721
+ * HTTP POST /asset
722
+ * Java method: org.openremote.model.asset.AssetResource.create
716
723
  */
717
- getHealthStatus(options?: O): RestResponse<{
718
- [index: string]: any;
719
- }>;
724
+ create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
720
725
  /**
721
- * HTTP GET /info
722
- * Java method: org.openremote.model.system.StatusResource.getInfo
726
+ * HTTP DELETE /asset
727
+ * Java method: org.openremote.model.asset.AssetResource.delete
723
728
  */
724
- getInfo(options?: O): RestResponse<{
725
- [index: string]: any;
726
- }>;
727
- }
728
- export declare class NotificationResourceClient<O> {
729
- protected httpClient: HttpClient<O>;
730
- constructor(httpClient: HttpClient<O>);
729
+ delete(queryParams?: {
730
+ assetId?: string[];
731
+ }, options?: O): RestResponse<void>;
731
732
  /**
732
- * HTTP GET /notification
733
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
733
+ * HTTP PUT /asset/attributes
734
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
734
735
  */
735
- getNotifications(queryParams?: {
736
- id?: number;
737
- type?: string;
738
- from?: number;
739
- to?: number;
740
- realmId?: string;
736
+ writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
737
+ /**
738
+ * HTTP PUT /asset/attributes/timestamp
739
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
740
+ */
741
+ writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
742
+ /**
743
+ * HTTP DELETE /asset/parent
744
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
745
+ */
746
+ updateNoneParent(queryParams?: {
747
+ assetIds?: string[];
748
+ }, options?: O): RestResponse<void>;
749
+ /**
750
+ * HTTP GET /asset/partial/{assetId}
751
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
752
+ */
753
+ getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
754
+ /**
755
+ * HTTP POST /asset/query
756
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
757
+ */
758
+ queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
759
+ /**
760
+ * HTTP POST /asset/tree
761
+ * Java method: org.openremote.model.asset.AssetResource.queryAssetTree
762
+ */
763
+ queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
764
+ /**
765
+ * HTTP GET /asset/user/current
766
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
767
+ */
768
+ getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
769
+ /**
770
+ * HTTP POST /asset/user/link
771
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
772
+ */
773
+ createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
774
+ /**
775
+ * HTTP GET /asset/user/link
776
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
777
+ */
778
+ getUserAssetLinks(queryParams?: {
779
+ realm?: string;
741
780
  userId?: string;
742
781
  assetId?: string;
743
- }, options?: O): RestResponse<Model.SentNotification[]>;
782
+ }, options?: O): RestResponse<Model.UserAssetLink[]>;
783
+ /**
784
+ * HTTP POST /asset/user/link/delete
785
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
786
+ */
787
+ deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
788
+ /**
789
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
790
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
791
+ */
792
+ deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
793
+ /**
794
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
795
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
796
+ */
797
+ deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
744
798
  /**
745
- * HTTP DELETE /notification
746
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
799
+ * HTTP GET /asset/{assetId}
800
+ * Java method: org.openremote.model.asset.AssetResource.get
747
801
  */
748
- removeNotifications(queryParams?: {
749
- id?: number;
750
- type?: string;
751
- from?: number;
752
- to?: number;
753
- realmId?: string;
754
- userId?: string;
755
- assetId?: string;
756
- }, options?: O): RestResponse<void>;
802
+ get(assetId: string, options?: O): RestResponse<Model.Asset>;
757
803
  /**
758
- * HTTP POST /notification/alert
759
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
804
+ * HTTP PUT /asset/{assetId}
805
+ * Java method: org.openremote.model.asset.AssetResource.update
760
806
  */
761
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
807
+ update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
762
808
  /**
763
- * HTTP DELETE /notification/{notificationId}
764
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
809
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
810
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
765
811
  */
766
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
812
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
767
813
  /**
768
- * HTTP PUT /notification/{notificationId}/acknowledged
769
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
814
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
815
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
770
816
  */
771
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
772
- targetId?: string;
773
- }, options?: O): RestResponse<void>;
817
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
774
818
  /**
775
- * HTTP PUT /notification/{notificationId}/delivered
776
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
819
+ * HTTP PUT /asset/{parentAssetId}/child
820
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
777
821
  */
778
- notificationDelivered(notificationId: number, queryParams?: {
779
- targetId?: string;
822
+ updateParent(parentAssetId: string, queryParams?: {
823
+ assetIds?: string[];
780
824
  }, options?: O): RestResponse<void>;
781
825
  }
782
- export declare class AlarmResourceClient<O> {
826
+ export declare class AppResourceClient<O> {
783
827
  protected httpClient: HttpClient<O>;
784
828
  constructor(httpClient: HttpClient<O>);
785
829
  /**
786
- * HTTP POST /alarm
787
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
830
+ * HTTP GET /apps
831
+ * Java method: org.openremote.model.apps.AppResource.getApps
788
832
  */
789
- createAlarm(alarm: Model.Alarm, queryParams?: {
790
- assetIds?: string[];
791
- }, options?: O): RestResponse<Model.SentAlarm>;
833
+ getApps(options?: O): RestResponse<string[]>;
792
834
  /**
793
- * HTTP GET /alarm
794
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
835
+ * HTTP GET /apps/consoleConfig
836
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
795
837
  */
796
- getAlarms(queryParams?: {
797
- realm?: string;
798
- status?: Model.AlarmStatus;
799
- assetId?: string;
800
- assigneeId?: string;
801
- }, options?: O): RestResponse<Model.SentAlarm[]>;
838
+ getConsoleConfig(options?: O): RestResponse<any>;
802
839
  /**
803
- * HTTP DELETE /alarm
804
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
840
+ * HTTP GET /apps/info
841
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
805
842
  */
806
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
843
+ getAppInfos(options?: O): RestResponse<any>;
844
+ }
845
+ export declare class RealmResourceClient<O> {
846
+ protected httpClient: HttpClient<O>;
847
+ constructor(httpClient: HttpClient<O>);
807
848
  /**
808
- * HTTP PUT /alarm/assets
809
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
849
+ * HTTP POST /realm
850
+ * Java method: org.openremote.model.security.RealmResource.create
810
851
  */
811
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
852
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
812
853
  /**
813
- * HTTP GET /alarm/{alarmId}
814
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
854
+ * HTTP GET /realm
855
+ * Java method: org.openremote.model.security.RealmResource.getAll
815
856
  */
816
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
857
+ getAll(options?: O): RestResponse<Model.Realm[]>;
817
858
  /**
818
- * HTTP DELETE /alarm/{alarmId}
819
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
859
+ * HTTP GET /realm/accessible
860
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
820
861
  */
821
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
862
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
822
863
  /**
823
- * HTTP PUT /alarm/{alarmId}
824
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
864
+ * HTTP DELETE /realm/{name}
865
+ * Java method: org.openremote.model.security.RealmResource.delete
825
866
  */
826
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
867
+ delete(name: string, options?: O): RestResponse<void>;
827
868
  /**
828
- * HTTP GET /alarm/{alarmId}/assets
829
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
869
+ * HTTP GET /realm/{name}
870
+ * Java method: org.openremote.model.security.RealmResource.get
830
871
  */
831
- getAssetLinks(alarmId: number, queryParams?: {
832
- realm?: string;
833
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
872
+ get(name: string, options?: O): RestResponse<Model.Realm>;
873
+ /**
874
+ * HTTP PUT /realm/{name}
875
+ * Java method: org.openremote.model.security.RealmResource.update
876
+ */
877
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
834
878
  }
835
- export declare class ProvisioningResourceClient<O> {
879
+ export declare class ConsoleResourceClient<O> {
836
880
  protected httpClient: HttpClient<O>;
837
881
  constructor(httpClient: HttpClient<O>);
838
882
  /**
839
- * HTTP POST /provisioning
840
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
841
- */
842
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
843
- /**
844
- * HTTP GET /provisioning
845
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
846
- */
847
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
848
- /**
849
- * HTTP DELETE /provisioning/{id}
850
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
851
- */
852
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
853
- /**
854
- * HTTP PUT /provisioning/{id}
855
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
883
+ * HTTP POST /console/register
884
+ * Java method: org.openremote.model.console.ConsoleResource.register
856
885
  */
857
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
886
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
858
887
  }
859
888
  export declare class AssetDatapointResourceClient<O> {
860
889
  protected httpClient: HttpClient<O>;
@@ -927,82 +956,53 @@ export declare class AssetModelResourceClient<O> {
927
956
  [index: string]: Model.ValueDescriptor;
928
957
  }>;
929
958
  }
930
- export declare class GatewayServiceResourceClient<O> {
931
- protected httpClient: HttpClient<O>;
932
- constructor(httpClient: HttpClient<O>);
933
- /**
934
- * HTTP POST /gateway/tunnel
935
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
936
- */
937
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
938
- /**
939
- * HTTP DELETE /gateway/tunnel
940
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
941
- */
942
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
943
- /**
944
- * HTTP GET /gateway/tunnel/{realm}
945
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
946
- */
947
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
948
- /**
949
- * HTTP GET /gateway/tunnel/{realm}/{id}
950
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
951
- */
952
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
953
- /**
954
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
955
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
956
- */
957
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
958
- }
959
959
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
960
960
  export declare class ApiClient {
961
- protected _realmResource: AxiosRealmResourceClient;
962
- protected _dashboardResource: AxiosDashboardResourceClient;
963
961
  protected _syslogResource: AxiosSyslogResourceClient;
964
- protected _assetResource: AxiosAssetResourceClient;
965
- protected _rulesResource: AxiosRulesResourceClient;
962
+ protected _provisioningResource: AxiosProvisioningResourceClient;
963
+ protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
966
964
  protected _mapResource: AxiosMapResourceClient;
967
965
  protected _gatewayClientResource: AxiosGatewayClientResourceClient;
968
- protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
969
- protected _configurationResource: AxiosConfigurationResourceClient;
966
+ protected _notificationResource: AxiosNotificationResourceClient;
967
+ protected _dashboardResource: AxiosDashboardResourceClient;
970
968
  protected _flowResource: AxiosFlowResourceClient;
971
- protected _consoleResource: AxiosConsoleResourceClient;
972
- protected _appResource: AxiosAppResourceClient;
969
+ protected _rulesResource: AxiosRulesResourceClient;
970
+ protected _configurationResource: AxiosConfigurationResourceClient;
971
+ protected _alarmResource: AxiosAlarmResourceClient;
972
+ protected _statusResource: AxiosStatusResourceClient;
973
973
  protected _externalServiceResource: AxiosExternalServiceResourceClient;
974
974
  protected _userResource: AxiosUserResourceClient;
975
+ protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
975
976
  protected _agentResource: AxiosAgentResourceClient;
976
- protected _statusResource: AxiosStatusResourceClient;
977
- protected _notificationResource: AxiosNotificationResourceClient;
978
- protected _alarmResource: AxiosAlarmResourceClient;
979
- protected _provisioningResource: AxiosProvisioningResourceClient;
977
+ protected _assetResource: AxiosAssetResourceClient;
978
+ protected _appResource: AxiosAppResourceClient;
979
+ protected _realmResource: AxiosRealmResourceClient;
980
+ protected _consoleResource: AxiosConsoleResourceClient;
980
981
  protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
981
982
  protected _assetModelResource: AxiosAssetModelResourceClient;
982
- protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
983
983
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
984
- get RealmResource(): AxiosRealmResourceClient;
985
- get DashboardResource(): AxiosDashboardResourceClient;
986
984
  get SyslogResource(): AxiosSyslogResourceClient;
987
- get AssetResource(): AxiosAssetResourceClient;
988
- get RulesResource(): AxiosRulesResourceClient;
985
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
986
+ get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
989
987
  get MapResource(): AxiosMapResourceClient;
990
988
  get GatewayClientResource(): AxiosGatewayClientResourceClient;
991
- get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
992
- get ConfigurationResource(): AxiosConfigurationResourceClient;
989
+ get NotificationResource(): AxiosNotificationResourceClient;
990
+ get DashboardResource(): AxiosDashboardResourceClient;
993
991
  get FlowResource(): AxiosFlowResourceClient;
994
- get ConsoleResource(): AxiosConsoleResourceClient;
995
- get AppResource(): AxiosAppResourceClient;
992
+ get RulesResource(): AxiosRulesResourceClient;
993
+ get ConfigurationResource(): AxiosConfigurationResourceClient;
994
+ get AlarmResource(): AxiosAlarmResourceClient;
995
+ get StatusResource(): AxiosStatusResourceClient;
996
996
  get ExternalServiceResource(): AxiosExternalServiceResourceClient;
997
997
  get UserResource(): AxiosUserResourceClient;
998
+ get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
998
999
  get AgentResource(): AxiosAgentResourceClient;
999
- get StatusResource(): AxiosStatusResourceClient;
1000
- get NotificationResource(): AxiosNotificationResourceClient;
1001
- get AlarmResource(): AxiosAlarmResourceClient;
1002
- get ProvisioningResource(): AxiosProvisioningResourceClient;
1000
+ get AssetResource(): AxiosAssetResourceClient;
1001
+ get AppResource(): AxiosAppResourceClient;
1002
+ get RealmResource(): AxiosRealmResourceClient;
1003
+ get ConsoleResource(): AxiosConsoleResourceClient;
1003
1004
  get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
1004
1005
  get AssetModelResource(): AxiosAssetModelResourceClient;
1005
- get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1006
1006
  }
1007
1007
  import * as Axios from "axios";
1008
1008
  declare module "axios" {
@@ -1010,19 +1010,13 @@ declare module "axios" {
1010
1010
  data: R;
1011
1011
  }
1012
1012
  }
1013
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1014
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1015
- }
1016
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1017
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1018
- }
1019
1013
  export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1020
1014
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1021
1015
  }
1022
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1016
+ export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1023
1017
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1024
1018
  }
1025
- export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1019
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1026
1020
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1027
1021
  }
1028
1022
  export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
@@ -1031,19 +1025,25 @@ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.Axio
1031
1025
  export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1032
1026
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1033
1027
  }
1034
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1028
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1035
1029
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1036
1030
  }
1037
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1031
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1038
1032
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1039
1033
  }
1040
1034
  export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1041
1035
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1042
1036
  }
1043
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1037
+ export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1044
1038
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1045
1039
  }
1046
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1040
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1041
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1042
+ }
1043
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1044
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1045
+ }
1046
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1047
1047
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1048
1048
  }
1049
1049
  export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
@@ -1052,19 +1052,22 @@ export declare class AxiosExternalServiceResourceClient extends ExternalServiceR
1052
1052
  export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1053
1053
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1054
1054
  }
1055
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1056
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1057
+ }
1055
1058
  export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1056
1059
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1057
1060
  }
1058
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1061
+ export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1059
1062
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1060
1063
  }
1061
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1064
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1062
1065
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1063
1066
  }
1064
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1067
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1065
1068
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1066
1069
  }
1067
- export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1070
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1068
1071
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1069
1072
  }
1070
1073
  export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
@@ -1073,6 +1076,3 @@ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointRes
1073
1076
  export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1074
1077
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1075
1078
  }
1076
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1077
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1078
- }