@openremote/rest 1.8.0-snapshot.20250728133133 → 1.8.0-snapshot.20250728151446

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