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

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