@openremote/rest 1.2.2 → 1.2.3-1

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,215 +9,199 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class AgentResourceClient<O> {
13
- protected httpClient: HttpClient<O>;
14
- constructor(httpClient: HttpClient<O>);
15
- /**
16
- * HTTP GET /agent/assetDiscovery/{agentId}
17
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
18
- */
19
- doProtocolAssetDiscovery(agentId: any, queryParams?: {
20
- realm?: any;
21
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
22
- /**
23
- * HTTP POST /agent/assetImport/{agentId}
24
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
25
- */
26
- doProtocolAssetImport(agentId: any, fileInfo: Model.FileInfo, queryParams?: {
27
- realm?: any;
28
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
29
- /**
30
- * HTTP GET /agent/instanceDiscovery/{agentType}
31
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
32
- */
33
- doProtocolInstanceDiscovery(agentType: any, queryParams?: {
34
- parentId?: any;
35
- realm?: any;
36
- }, options?: O): RestResponse<Model.Agent[]>;
37
- }
38
- export declare class UserResourceClient<O> {
12
+ export declare class NotificationResourceClient<O> {
39
13
  protected httpClient: HttpClient<O>;
40
14
  constructor(httpClient: HttpClient<O>);
41
15
  /**
42
- * HTTP PUT /user/locale
43
- * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
44
- */
45
- updateCurrentUserLocale(locale: any, options?: O): RestResponse<void>;
46
- /**
47
- * HTTP POST /user/query
48
- * Java method: org.openremote.model.security.UserResource.query
49
- */
50
- query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
51
- /**
52
- * HTTP GET /user/user
53
- * Java method: org.openremote.model.security.UserResource.getCurrent
54
- */
55
- getCurrent(options?: O): RestResponse<Model.User>;
56
- /**
57
- * HTTP GET /user/userRealmRoles
58
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
16
+ * HTTP GET /notification
17
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
59
18
  */
60
- getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
19
+ getNotifications(queryParams?: {
20
+ id?: any;
21
+ type?: any;
22
+ from?: any;
23
+ to?: any;
24
+ realmId?: any;
25
+ userId?: any;
26
+ assetId?: any;
27
+ }, options?: O): RestResponse<Model.SentNotification[]>;
61
28
  /**
62
- * HTTP GET /user/userRoles
63
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
29
+ * HTTP DELETE /notification
30
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
64
31
  */
65
- getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
32
+ removeNotifications(queryParams?: {
33
+ id?: any;
34
+ type?: any;
35
+ from?: any;
36
+ to?: any;
37
+ realmId?: any;
38
+ userId?: any;
39
+ assetId?: any;
40
+ }, options?: O): RestResponse<void>;
66
41
  /**
67
- * HTTP GET /user/userRoles/{clientId}
68
- * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
42
+ * HTTP POST /notification/alert
43
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
69
44
  */
70
- getCurrentUserClientRoles(clientId: any, options?: O): RestResponse<Model.Role[]>;
45
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
71
46
  /**
72
- * HTTP GET /user/{realm}/disconnect/{sessionID}
73
- * Java method: org.openremote.model.security.UserResource.disconnectUserSession
47
+ * HTTP DELETE /notification/{notificationId}
48
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
74
49
  */
75
- disconnectUserSession(realm: any, sessionID: any, options?: O): RestResponse<void>;
50
+ removeNotification(notificationId: any, options?: O): RestResponse<void>;
76
51
  /**
77
- * HTTP PUT /user/{realm}/reset-password/{userId}
78
- * Java method: org.openremote.model.security.UserResource.resetPassword
52
+ * HTTP PUT /notification/{notificationId}/acknowledged
53
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
79
54
  */
80
- resetPassword(realm: any, userId: any, credential: Model.Credential, options?: O): RestResponse<void>;
55
+ notificationAcknowledged(notificationId: any, acknowledgement: any, queryParams?: {
56
+ targetId?: any;
57
+ }, options?: O): RestResponse<void>;
81
58
  /**
82
- * HTTP GET /user/{realm}/reset-secret/{userId}
83
- * Java method: org.openremote.model.security.UserResource.resetSecret
59
+ * HTTP PUT /notification/{notificationId}/delivered
60
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
84
61
  */
85
- resetSecret(realm: any, userId: any, options?: O): RestResponse<any>;
62
+ notificationDelivered(notificationId: any, queryParams?: {
63
+ targetId?: any;
64
+ }, options?: O): RestResponse<void>;
65
+ }
66
+ export declare class GatewayClientResourceClient<O> {
67
+ protected httpClient: HttpClient<O>;
68
+ constructor(httpClient: HttpClient<O>);
86
69
  /**
87
- * HTTP GET /user/{realm}/roles
88
- * Java method: org.openremote.model.security.UserResource.getRoles
70
+ * HTTP DELETE /gateway/connection
71
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
89
72
  */
90
- getRoles(realm: any, options?: O): RestResponse<Model.Role[]>;
73
+ deleteConnections(queryParams?: {
74
+ realm?: any[];
75
+ }, options?: O): RestResponse<void>;
91
76
  /**
92
- * HTTP PUT /user/{realm}/roles
93
- * Java method: org.openremote.model.security.UserResource.updateRoles
77
+ * HTTP GET /gateway/connection
78
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
94
79
  */
95
- updateRoles(realm: any, roles: Model.Role[], options?: O): RestResponse<void>;
80
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
96
81
  /**
97
- * HTTP GET /user/{realm}/userRealmRoles/{userId}
98
- * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
82
+ * HTTP DELETE /gateway/connection/{realm}
83
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
99
84
  */
100
- getUserRealmRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
85
+ deleteConnection(realm: any, options?: O): RestResponse<void>;
101
86
  /**
102
- * HTTP PUT /user/{realm}/userRealmRoles/{userId}
103
- * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
87
+ * HTTP GET /gateway/connection/{realm}
88
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
104
89
  */
105
- updateUserRealmRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
90
+ getConnection(realm: any, options?: O): RestResponse<Model.GatewayConnection>;
106
91
  /**
107
- * HTTP GET /user/{realm}/userRoles/{userId}
108
- * Java method: org.openremote.model.security.UserResource.getUserRoles
92
+ * HTTP PUT /gateway/connection/{realm}
93
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
109
94
  */
110
- getUserRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
95
+ setConnection(realm: any, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
111
96
  /**
112
- * HTTP PUT /user/{realm}/userRoles/{userId}
113
- * Java method: org.openremote.model.security.UserResource.updateUserRoles
97
+ * HTTP GET /gateway/status/{realm}
98
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
114
99
  */
115
- updateUserRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
100
+ getConnectionStatus(realm: any, options?: O): RestResponse<Model.ConnectionStatus>;
101
+ }
102
+ export declare class AgentResourceClient<O> {
103
+ protected httpClient: HttpClient<O>;
104
+ constructor(httpClient: HttpClient<O>);
116
105
  /**
117
- * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
118
- * Java method: org.openremote.model.security.UserResource.getUserClientRoles
106
+ * HTTP GET /agent/assetDiscovery/{agentId}
107
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
119
108
  */
120
- getUserClientRoles(realm: any, userId: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
109
+ doProtocolAssetDiscovery(agentId: any, queryParams?: {
110
+ realm?: any;
111
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
121
112
  /**
122
- * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
123
- * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
113
+ * HTTP POST /agent/assetImport/{agentId}
114
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
124
115
  */
125
- updateUserClientRoles(realm: any, userId: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
116
+ doProtocolAssetImport(agentId: any, fileInfo: Model.FileInfo, queryParams?: {
117
+ realm?: any;
118
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
126
119
  /**
127
- * HTTP GET /user/{realm}/userSessions/{userId}
128
- * Java method: org.openremote.model.security.UserResource.getUserSessions
120
+ * HTTP GET /agent/instanceDiscovery/{agentType}
121
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
129
122
  */
130
- getUserSessions(realm: any, userId: any, options?: O): RestResponse<Model.UserSession[]>;
123
+ doProtocolInstanceDiscovery(agentType: any, queryParams?: {
124
+ parentId?: any;
125
+ realm?: any;
126
+ }, options?: O): RestResponse<Model.Agent[]>;
127
+ }
128
+ export declare class DashboardResourceClient<O> {
129
+ protected httpClient: HttpClient<O>;
130
+ constructor(httpClient: HttpClient<O>);
131
131
  /**
132
- * HTTP POST /user/{realm}/users
133
- * Java method: org.openremote.model.security.UserResource.create
132
+ * HTTP POST /dashboard
133
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
134
134
  */
135
- create(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
135
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
136
136
  /**
137
- * HTTP PUT /user/{realm}/users
138
- * Java method: org.openremote.model.security.UserResource.update
137
+ * HTTP PUT /dashboard
138
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
139
139
  */
140
- update(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
140
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
141
141
  /**
142
- * HTTP DELETE /user/{realm}/users/{userId}
143
- * Java method: org.openremote.model.security.UserResource.delete
142
+ * HTTP GET /dashboard/all/{realm}
143
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
144
144
  */
145
- delete(realm: any, userId: any, options?: O): RestResponse<void>;
145
+ getAllRealmDashboards(realm: any, options?: O): RestResponse<Model.Dashboard[]>;
146
146
  /**
147
- * HTTP GET /user/{realm}/{clientId}/roles
148
- * Java method: org.openremote.model.security.UserResource.getClientRoles
147
+ * HTTP POST /dashboard/query
148
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
149
149
  */
150
- getClientRoles(realm: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
150
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
151
151
  /**
152
- * HTTP PUT /user/{realm}/{clientId}/roles
153
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
152
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
153
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
154
154
  */
155
- updateClientRoles(realm: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
155
+ delete(realm: any, dashboardId: any, options?: O): RestResponse<void>;
156
156
  /**
157
- * HTTP GET /user/{realm}/{userId}
158
- * Java method: org.openremote.model.security.UserResource.get
157
+ * HTTP GET /dashboard/{realm}/{dashboardId}
158
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
159
159
  */
160
- get(realm: any, userId: any, options?: O): RestResponse<Model.User>;
160
+ get(realm: any, dashboardId: any, options?: O): RestResponse<Model.Dashboard>;
161
161
  }
162
- export declare class RealmResourceClient<O> {
162
+ export declare class StatusResourceClient<O> {
163
163
  protected httpClient: HttpClient<O>;
164
164
  constructor(httpClient: HttpClient<O>);
165
165
  /**
166
- * HTTP POST /realm
167
- * Java method: org.openremote.model.security.RealmResource.create
168
- */
169
- create(realm: Model.Realm, options?: O): RestResponse<void>;
170
- /**
171
- * HTTP GET /realm
172
- * Java method: org.openremote.model.security.RealmResource.getAll
173
- */
174
- getAll(options?: O): RestResponse<Model.Realm[]>;
175
- /**
176
- * HTTP GET /realm/accessible
177
- * Java method: org.openremote.model.security.RealmResource.getAccessible
178
- */
179
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
180
- /**
181
- * HTTP DELETE /realm/{name}
182
- * Java method: org.openremote.model.security.RealmResource.delete
183
- */
184
- delete(name: any, options?: O): RestResponse<void>;
185
- /**
186
- * HTTP GET /realm/{name}
187
- * Java method: org.openremote.model.security.RealmResource.get
166
+ * HTTP GET /health
167
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
188
168
  */
189
- get(name: any, options?: O): RestResponse<Model.Realm>;
169
+ getHealthStatus(options?: O): RestResponse<{
170
+ [index: string]: any;
171
+ }>;
190
172
  /**
191
- * HTTP PUT /realm/{name}
192
- * Java method: org.openremote.model.security.RealmResource.update
173
+ * HTTP GET /info
174
+ * Java method: org.openremote.model.system.StatusResource.getInfo
193
175
  */
194
- update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
176
+ getInfo(options?: O): RestResponse<{
177
+ [index: string]: any;
178
+ }>;
195
179
  }
196
- export declare class ConfigurationResourceClient<O> {
180
+ export declare class AssetDatapointResourceClient<O> {
197
181
  protected httpClient: HttpClient<O>;
198
182
  constructor(httpClient: HttpClient<O>);
199
183
  /**
200
- * HTTP GET /configuration/manager
201
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
202
- */
203
- getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
204
- /**
205
- * HTTP PUT /configuration/manager
206
- * Java method: org.openremote.model.manager.ConfigurationResource.update
184
+ * HTTP GET /asset/datapoint/export
185
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
207
186
  */
208
- update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
187
+ getDatapointExport(queryParams?: {
188
+ attributeRefs?: any;
189
+ fromTimestamp?: number;
190
+ toTimestamp?: number;
191
+ }, options?: O): RestResponse<any>;
209
192
  /**
210
- * HTTP POST /configuration/manager/file
211
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
193
+ * HTTP GET /asset/datapoint/periods
194
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
212
195
  */
213
- fileUpload(fileInfo: Model.FileInfo, queryParams?: {
214
- path?: any;
215
- }, options?: O): RestResponse<any>;
196
+ getDatapointPeriod(queryParams?: {
197
+ assetId?: any;
198
+ attributeName?: any;
199
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
216
200
  /**
217
- * HTTP GET /configuration/manager/image/{filename: .+}
218
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
201
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
202
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
219
203
  */
220
- getManagerConfigImage(filename: any, options?: O): RestResponse<any>;
204
+ getDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
221
205
  }
222
206
  export declare class AssetResourceClient<O> {
223
207
  protected httpClient: HttpClient<O>;
@@ -323,58 +307,68 @@ export declare class AssetResourceClient<O> {
323
307
  assetIds?: any[];
324
308
  }, options?: O): RestResponse<void>;
325
309
  }
326
- export declare class ConsoleResourceClient<O> {
310
+ export declare class GatewayServiceResourceClient<O> {
327
311
  protected httpClient: HttpClient<O>;
328
312
  constructor(httpClient: HttpClient<O>);
329
313
  /**
330
- * HTTP POST /console/register
331
- * Java method: org.openremote.model.console.ConsoleResource.register
314
+ * HTTP POST /gateway/tunnel
315
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
332
316
  */
333
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
334
- }
335
- export declare class AssetDatapointResourceClient<O> {
336
- protected httpClient: HttpClient<O>;
337
- constructor(httpClient: HttpClient<O>);
317
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
338
318
  /**
339
- * HTTP GET /asset/datapoint/export
340
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
319
+ * HTTP DELETE /gateway/tunnel
320
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
341
321
  */
342
- getDatapointExport(queryParams?: {
343
- attributeRefs?: any;
344
- fromTimestamp?: number;
345
- toTimestamp?: number;
346
- }, options?: O): RestResponse<any>;
322
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
347
323
  /**
348
- * HTTP GET /asset/datapoint/periods
349
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
324
+ * HTTP GET /gateway/tunnel/{realm}
325
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
350
326
  */
351
- getDatapointPeriod(queryParams?: {
352
- assetId?: any;
353
- attributeName?: any;
354
- }, options?: O): RestResponse<Model.DatapointPeriod>;
327
+ getAllActiveTunnelInfos(realm: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
355
328
  /**
356
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
357
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
329
+ * HTTP GET /gateway/tunnel/{realm}/{id}
330
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
358
331
  */
359
- getDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
332
+ getGatewayActiveTunnelInfos(realm: any, id: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
333
+ /**
334
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
335
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
336
+ */
337
+ getActiveTunnelInfo(realm: any, id: any, target: any, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
360
338
  }
361
- export declare class StatusResourceClient<O> {
339
+ export declare class RealmResourceClient<O> {
362
340
  protected httpClient: HttpClient<O>;
363
341
  constructor(httpClient: HttpClient<O>);
364
342
  /**
365
- * HTTP GET /health
366
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
343
+ * HTTP POST /realm
344
+ * Java method: org.openremote.model.security.RealmResource.create
367
345
  */
368
- getHealthStatus(options?: O): RestResponse<{
369
- [index: string]: any;
370
- }>;
346
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
371
347
  /**
372
- * HTTP GET /info
373
- * Java method: org.openremote.model.system.StatusResource.getInfo
348
+ * HTTP GET /realm
349
+ * Java method: org.openremote.model.security.RealmResource.getAll
374
350
  */
375
- getInfo(options?: O): RestResponse<{
376
- [index: string]: any;
377
- }>;
351
+ getAll(options?: O): RestResponse<Model.Realm[]>;
352
+ /**
353
+ * HTTP GET /realm/accessible
354
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
355
+ */
356
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
357
+ /**
358
+ * HTTP DELETE /realm/{name}
359
+ * Java method: org.openremote.model.security.RealmResource.delete
360
+ */
361
+ delete(name: any, options?: O): RestResponse<void>;
362
+ /**
363
+ * HTTP GET /realm/{name}
364
+ * Java method: org.openremote.model.security.RealmResource.get
365
+ */
366
+ get(name: any, options?: O): RestResponse<Model.Realm>;
367
+ /**
368
+ * HTTP PUT /realm/{name}
369
+ * Java method: org.openremote.model.security.RealmResource.update
370
+ */
371
+ update(name: any, realm: Model.Realm, options?: O): RestResponse<void>;
378
372
  }
379
373
  export declare class AlarmResourceClient<O> {
380
374
  protected httpClient: HttpClient<O>;
@@ -429,34 +423,37 @@ export declare class AlarmResourceClient<O> {
429
423
  realm?: any;
430
424
  }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
431
425
  }
432
- export declare class GatewayServiceResourceClient<O> {
426
+ export declare class SyslogResourceClient<O> {
433
427
  protected httpClient: HttpClient<O>;
434
428
  constructor(httpClient: HttpClient<O>);
435
429
  /**
436
- * HTTP POST /gateway/tunnel
437
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
438
- */
439
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
440
- /**
441
- * HTTP DELETE /gateway/tunnel
442
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
430
+ * HTTP GET /syslog/config
431
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
443
432
  */
444
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
433
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
445
434
  /**
446
- * HTTP GET /gateway/tunnel/{realm}
447
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
435
+ * HTTP PUT /syslog/config
436
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
448
437
  */
449
- getAllActiveTunnelInfos(realm: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
438
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
450
439
  /**
451
- * HTTP GET /gateway/tunnel/{realm}/{id}
452
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
440
+ * HTTP DELETE /syslog/event
441
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
453
442
  */
454
- getGatewayActiveTunnelInfos(realm: any, id: any, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
443
+ clearEvents(options?: O): RestResponse<void>;
455
444
  /**
456
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
457
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
445
+ * HTTP GET /syslog/event
446
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
458
447
  */
459
- getActiveTunnelInfo(realm: any, id: any, target: any, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
448
+ getEvents(queryParams?: {
449
+ level?: Model.SyslogLevel;
450
+ per_page?: any;
451
+ page?: any;
452
+ from?: any;
453
+ to?: any;
454
+ category?: Model.SyslogCategory[];
455
+ subCategory?: any[];
456
+ }, options?: O): RestResponse<any>;
460
457
  }
461
458
  export declare class ProvisioningResourceClient<O> {
462
459
  protected httpClient: HttpClient<O>;
@@ -482,37 +479,50 @@ export declare class ProvisioningResourceClient<O> {
482
479
  */
483
480
  updateProvisioningConfig(id: any, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
484
481
  }
485
- export declare class SyslogResourceClient<O> {
482
+ export declare class FlowResourceClient<O> {
486
483
  protected httpClient: HttpClient<O>;
487
484
  constructor(httpClient: HttpClient<O>);
488
485
  /**
489
- * HTTP GET /syslog/config
490
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
486
+ * HTTP GET /flow
487
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
491
488
  */
492
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
489
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
493
490
  /**
494
- * HTTP PUT /syslog/config
495
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
491
+ * HTTP GET /flow/{name}
492
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
496
493
  */
497
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
494
+ getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
498
495
  /**
499
- * HTTP DELETE /syslog/event
500
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
496
+ * HTTP GET /flow/{type}
497
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
501
498
  */
502
- clearEvents(options?: O): RestResponse<void>;
499
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
500
+ }
501
+ export declare class ConfigurationResourceClient<O> {
502
+ protected httpClient: HttpClient<O>;
503
+ constructor(httpClient: HttpClient<O>);
503
504
  /**
504
- * HTTP GET /syslog/event
505
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
505
+ * HTTP GET /configuration/manager
506
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
506
507
  */
507
- getEvents(queryParams?: {
508
- level?: Model.SyslogLevel;
509
- per_page?: any;
510
- page?: any;
511
- from?: any;
512
- to?: any;
513
- category?: Model.SyslogCategory[];
514
- subCategory?: any[];
508
+ getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
509
+ /**
510
+ * HTTP PUT /configuration/manager
511
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
512
+ */
513
+ update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
514
+ /**
515
+ * HTTP POST /configuration/manager/file
516
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
517
+ */
518
+ fileUpload(fileInfo: Model.FileInfo, queryParams?: {
519
+ path?: any;
515
520
  }, options?: O): RestResponse<any>;
521
+ /**
522
+ * HTTP GET /configuration/manager/image/{filename: .+}
523
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
524
+ */
525
+ getManagerConfigImage(filename: any, options?: O): RestResponse<any>;
516
526
  }
517
527
  export declare class AssetModelResourceClient<O> {
518
528
  protected httpClient: HttpClient<O>;
@@ -559,270 +569,138 @@ export declare class AssetModelResourceClient<O> {
559
569
  [index: string]: Model.ValueDescriptor;
560
570
  }>;
561
571
  }
562
- export declare class GatewayClientResourceClient<O> {
563
- protected httpClient: HttpClient<O>;
564
- constructor(httpClient: HttpClient<O>);
565
- /**
566
- * HTTP DELETE /gateway/connection
567
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
568
- */
569
- deleteConnections(queryParams?: {
570
- realm?: any[];
571
- }, options?: O): RestResponse<void>;
572
- /**
573
- * HTTP GET /gateway/connection
574
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
575
- */
576
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
577
- /**
578
- * HTTP DELETE /gateway/connection/{realm}
579
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
580
- */
581
- deleteConnection(realm: any, options?: O): RestResponse<void>;
582
- /**
583
- * HTTP GET /gateway/connection/{realm}
584
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
585
- */
586
- getConnection(realm: any, options?: O): RestResponse<Model.GatewayConnection>;
587
- /**
588
- * HTTP PUT /gateway/connection/{realm}
589
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
590
- */
591
- setConnection(realm: any, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
592
- /**
593
- * HTTP GET /gateway/status/{realm}
594
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
595
- */
596
- getConnectionStatus(realm: any, options?: O): RestResponse<Model.ConnectionStatus>;
597
- }
598
- export declare class RulesResourceClient<O> {
572
+ export declare class UserResourceClient<O> {
599
573
  protected httpClient: HttpClient<O>;
600
574
  constructor(httpClient: HttpClient<O>);
601
575
  /**
602
- * HTTP POST /rules
603
- * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
604
- */
605
- createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
606
- /**
607
- * HTTP GET /rules
608
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
609
- */
610
- getGlobalRulesets(queryParams?: {
611
- language?: Model.RulesetLang[];
612
- fullyPopulate?: boolean;
613
- }, options?: O): RestResponse<Model.GlobalRuleset[]>;
614
- /**
615
- * HTTP POST /rules/asset
616
- * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
617
- */
618
- createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
619
- /**
620
- * HTTP GET /rules/asset/for/{assetId}
621
- * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
622
- */
623
- getAssetRulesets(assetId: any, queryParams?: {
624
- language?: Model.RulesetLang[];
625
- fullyPopulate?: boolean;
626
- }, options?: O): RestResponse<Model.AssetRuleset[]>;
627
- /**
628
- * HTTP DELETE /rules/asset/{id}
629
- * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
630
- */
631
- deleteAssetRuleset(id: any, options?: O): RestResponse<void>;
632
- /**
633
- * HTTP GET /rules/asset/{id}
634
- * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
635
- */
636
- getAssetRuleset(id: any, options?: O): RestResponse<Model.AssetRuleset>;
637
- /**
638
- * HTTP PUT /rules/asset/{id}
639
- * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
640
- */
641
- updateAssetRuleset(id: any, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
642
- /**
643
- * HTTP GET /rules/geofences/{assetId}
644
- * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
645
- */
646
- getAssetGeofences(assetId: any, options?: O): RestResponse<Model.GeofenceDefinition[]>;
647
- /**
648
- * HTTP GET /rules/info/asset/{assetId}
649
- * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
650
- */
651
- getAssetEngineInfo(assetId: any, options?: O): RestResponse<Model.RulesEngineInfo>;
652
- /**
653
- * HTTP GET /rules/info/global
654
- * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
655
- */
656
- getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
657
- /**
658
- * HTTP GET /rules/info/realm/{realm}
659
- * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
576
+ * HTTP PUT /user/locale
577
+ * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
660
578
  */
661
- getRealmEngineInfo(realm: any, options?: O): RestResponse<Model.RulesEngineInfo>;
579
+ updateCurrentUserLocale(locale: any, options?: O): RestResponse<void>;
662
580
  /**
663
- * HTTP POST /rules/realm
664
- * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
581
+ * HTTP POST /user/query
582
+ * Java method: org.openremote.model.security.UserResource.query
665
583
  */
666
- createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
584
+ query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
667
585
  /**
668
- * HTTP GET /rules/realm/for/{realm}
669
- * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
586
+ * HTTP GET /user/user
587
+ * Java method: org.openremote.model.security.UserResource.getCurrent
670
588
  */
671
- getRealmRulesets(realm: any, queryParams?: {
672
- language?: Model.RulesetLang[];
673
- fullyPopulate?: boolean;
674
- }, options?: O): RestResponse<Model.RealmRuleset[]>;
589
+ getCurrent(options?: O): RestResponse<Model.User>;
675
590
  /**
676
- * HTTP DELETE /rules/realm/{id}
677
- * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
591
+ * HTTP GET /user/userRealmRoles
592
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
678
593
  */
679
- deleteRealmRuleset(id: any, options?: O): RestResponse<void>;
594
+ getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
680
595
  /**
681
- * HTTP GET /rules/realm/{id}
682
- * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
596
+ * HTTP GET /user/userRoles
597
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
683
598
  */
684
- getRealmRuleset(id: any, options?: O): RestResponse<Model.RealmRuleset>;
599
+ getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
685
600
  /**
686
- * HTTP PUT /rules/realm/{id}
687
- * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
601
+ * HTTP GET /user/userRoles/{clientId}
602
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
688
603
  */
689
- updateRealmRuleset(id: any, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
604
+ getCurrentUserClientRoles(clientId: any, options?: O): RestResponse<Model.Role[]>;
690
605
  /**
691
- * HTTP DELETE /rules/{id}
692
- * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
606
+ * HTTP GET /user/{realm}/disconnect/{sessionID}
607
+ * Java method: org.openremote.model.security.UserResource.disconnectUserSession
693
608
  */
694
- deleteGlobalRuleset(id: any, options?: O): RestResponse<void>;
609
+ disconnectUserSession(realm: any, sessionID: any, options?: O): RestResponse<void>;
695
610
  /**
696
- * HTTP GET /rules/{id}
697
- * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
611
+ * HTTP PUT /user/{realm}/reset-password/{userId}
612
+ * Java method: org.openremote.model.security.UserResource.resetPassword
698
613
  */
699
- getGlobalRuleset(id: any, options?: O): RestResponse<Model.GlobalRuleset>;
614
+ resetPassword(realm: any, userId: any, credential: Model.Credential, options?: O): RestResponse<void>;
700
615
  /**
701
- * HTTP PUT /rules/{id}
702
- * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
616
+ * HTTP GET /user/{realm}/reset-secret/{userId}
617
+ * Java method: org.openremote.model.security.UserResource.resetSecret
703
618
  */
704
- updateGlobalRuleset(id: any, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
705
- }
706
- export declare class NotificationResourceClient<O> {
707
- protected httpClient: HttpClient<O>;
708
- constructor(httpClient: HttpClient<O>);
619
+ resetSecret(realm: any, userId: any, options?: O): RestResponse<any>;
709
620
  /**
710
- * HTTP GET /notification
711
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
621
+ * HTTP GET /user/{realm}/roles
622
+ * Java method: org.openremote.model.security.UserResource.getRoles
712
623
  */
713
- getNotifications(queryParams?: {
714
- id?: any;
715
- type?: any;
716
- from?: any;
717
- to?: any;
718
- realmId?: any;
719
- userId?: any;
720
- assetId?: any;
721
- }, options?: O): RestResponse<Model.SentNotification[]>;
624
+ getRoles(realm: any, options?: O): RestResponse<Model.Role[]>;
722
625
  /**
723
- * HTTP DELETE /notification
724
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
626
+ * HTTP PUT /user/{realm}/roles
627
+ * Java method: org.openremote.model.security.UserResource.updateRoles
725
628
  */
726
- removeNotifications(queryParams?: {
727
- id?: any;
728
- type?: any;
729
- from?: any;
730
- to?: any;
731
- realmId?: any;
732
- userId?: any;
733
- assetId?: any;
734
- }, options?: O): RestResponse<void>;
629
+ updateRoles(realm: any, roles: Model.Role[], options?: O): RestResponse<void>;
735
630
  /**
736
- * HTTP POST /notification/alert
737
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
631
+ * HTTP GET /user/{realm}/userRealmRoles/{userId}
632
+ * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
738
633
  */
739
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
634
+ getUserRealmRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
740
635
  /**
741
- * HTTP DELETE /notification/{notificationId}
742
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
636
+ * HTTP PUT /user/{realm}/userRealmRoles/{userId}
637
+ * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
743
638
  */
744
- removeNotification(notificationId: any, options?: O): RestResponse<void>;
639
+ updateUserRealmRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
745
640
  /**
746
- * HTTP PUT /notification/{notificationId}/acknowledged
747
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
641
+ * HTTP GET /user/{realm}/userRoles/{userId}
642
+ * Java method: org.openremote.model.security.UserResource.getUserRoles
748
643
  */
749
- notificationAcknowledged(notificationId: any, acknowledgement: any, queryParams?: {
750
- targetId?: any;
751
- }, options?: O): RestResponse<void>;
644
+ getUserRoles(realm: any, userId: any, options?: O): RestResponse<Model.Role[]>;
752
645
  /**
753
- * HTTP PUT /notification/{notificationId}/delivered
754
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
646
+ * HTTP PUT /user/{realm}/userRoles/{userId}
647
+ * Java method: org.openremote.model.security.UserResource.updateUserRoles
755
648
  */
756
- notificationDelivered(notificationId: any, queryParams?: {
757
- targetId?: any;
758
- }, options?: O): RestResponse<void>;
759
- }
760
- export declare class FlowResourceClient<O> {
761
- protected httpClient: HttpClient<O>;
762
- constructor(httpClient: HttpClient<O>);
649
+ updateUserRoles(realm: any, userId: any, roles: Model.Role[], options?: O): RestResponse<void>;
763
650
  /**
764
- * HTTP GET /flow
765
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
651
+ * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
652
+ * Java method: org.openremote.model.security.UserResource.getUserClientRoles
766
653
  */
767
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
654
+ getUserClientRoles(realm: any, userId: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
768
655
  /**
769
- * HTTP GET /flow/{name}
770
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
656
+ * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
657
+ * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
771
658
  */
772
- getNodeDefinition(name: any, options?: O): RestResponse<Model.Node>;
659
+ updateUserClientRoles(realm: any, userId: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
773
660
  /**
774
- * HTTP GET /flow/{type}
775
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
661
+ * HTTP GET /user/{realm}/userSessions/{userId}
662
+ * Java method: org.openremote.model.security.UserResource.getUserSessions
776
663
  */
777
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
778
- }
779
- export declare class DashboardResourceClient<O> {
780
- protected httpClient: HttpClient<O>;
781
- constructor(httpClient: HttpClient<O>);
664
+ getUserSessions(realm: any, userId: any, options?: O): RestResponse<Model.UserSession[]>;
782
665
  /**
783
- * HTTP POST /dashboard
784
- * Java method: org.openremote.model.dashboard.DashboardResource.create
666
+ * HTTP POST /user/{realm}/users
667
+ * Java method: org.openremote.model.security.UserResource.create
785
668
  */
786
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
669
+ create(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
787
670
  /**
788
- * HTTP PUT /dashboard
789
- * Java method: org.openremote.model.dashboard.DashboardResource.update
671
+ * HTTP PUT /user/{realm}/users
672
+ * Java method: org.openremote.model.security.UserResource.update
790
673
  */
791
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
674
+ update(realm: any, user: Model.User, options?: O): RestResponse<Model.User>;
792
675
  /**
793
- * HTTP GET /dashboard/all/{realm}
794
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
676
+ * HTTP DELETE /user/{realm}/users/{userId}
677
+ * Java method: org.openremote.model.security.UserResource.delete
795
678
  */
796
- getAllRealmDashboards(realm: any, options?: O): RestResponse<Model.Dashboard[]>;
679
+ delete(realm: any, userId: any, options?: O): RestResponse<void>;
797
680
  /**
798
- * HTTP POST /dashboard/query
799
- * Java method: org.openremote.model.dashboard.DashboardResource.query
681
+ * HTTP GET /user/{realm}/{clientId}/roles
682
+ * Java method: org.openremote.model.security.UserResource.getClientRoles
800
683
  */
801
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
684
+ getClientRoles(realm: any, clientId: any, options?: O): RestResponse<Model.Role[]>;
802
685
  /**
803
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
804
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
686
+ * HTTP PUT /user/{realm}/{clientId}/roles
687
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
805
688
  */
806
- delete(realm: any, dashboardId: any, options?: O): RestResponse<void>;
689
+ updateClientRoles(realm: any, clientId: any, roles: Model.Role[], options?: O): RestResponse<void>;
807
690
  /**
808
- * HTTP GET /dashboard/{realm}/{dashboardId}
809
- * Java method: org.openremote.model.dashboard.DashboardResource.get
691
+ * HTTP GET /user/{realm}/{userId}
692
+ * Java method: org.openremote.model.security.UserResource.get
810
693
  */
811
- get(realm: any, dashboardId: any, options?: O): RestResponse<Model.Dashboard>;
694
+ get(realm: any, userId: any, options?: O): RestResponse<Model.User>;
812
695
  }
813
- export declare class AssetPredictedDatapointResourceClient<O> {
696
+ export declare class ConsoleResourceClient<O> {
814
697
  protected httpClient: HttpClient<O>;
815
698
  constructor(httpClient: HttpClient<O>);
816
699
  /**
817
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
818
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
819
- */
820
- getPredictedDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
821
- /**
822
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
823
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
700
+ * HTTP POST /console/register
701
+ * Java method: org.openremote.model.console.ConsoleResource.register
824
702
  */
825
- writePredictedDatapoints(assetId: any, attributeName: any, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
703
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
826
704
  }
827
705
  export declare class AppResourceClient<O> {
828
706
  protected httpClient: HttpClient<O>;
@@ -873,51 +751,173 @@ export declare class MapResourceClient<O> {
873
751
  */
874
752
  getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
875
753
  }
754
+ export declare class AssetPredictedDatapointResourceClient<O> {
755
+ protected httpClient: HttpClient<O>;
756
+ constructor(httpClient: HttpClient<O>);
757
+ /**
758
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
759
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
760
+ */
761
+ getPredictedDatapoints(assetId: any, attributeName: any, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
762
+ /**
763
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
764
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
765
+ */
766
+ writePredictedDatapoints(assetId: any, attributeName: any, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
767
+ }
768
+ export declare class RulesResourceClient<O> {
769
+ protected httpClient: HttpClient<O>;
770
+ constructor(httpClient: HttpClient<O>);
771
+ /**
772
+ * HTTP POST /rules
773
+ * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
774
+ */
775
+ createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
776
+ /**
777
+ * HTTP GET /rules
778
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
779
+ */
780
+ getGlobalRulesets(queryParams?: {
781
+ language?: Model.RulesetLang[];
782
+ fullyPopulate?: boolean;
783
+ }, options?: O): RestResponse<Model.GlobalRuleset[]>;
784
+ /**
785
+ * HTTP POST /rules/asset
786
+ * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
787
+ */
788
+ createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
789
+ /**
790
+ * HTTP GET /rules/asset/for/{assetId}
791
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
792
+ */
793
+ getAssetRulesets(assetId: any, queryParams?: {
794
+ language?: Model.RulesetLang[];
795
+ fullyPopulate?: boolean;
796
+ }, options?: O): RestResponse<Model.AssetRuleset[]>;
797
+ /**
798
+ * HTTP DELETE /rules/asset/{id}
799
+ * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
800
+ */
801
+ deleteAssetRuleset(id: any, options?: O): RestResponse<void>;
802
+ /**
803
+ * HTTP GET /rules/asset/{id}
804
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
805
+ */
806
+ getAssetRuleset(id: any, options?: O): RestResponse<Model.AssetRuleset>;
807
+ /**
808
+ * HTTP PUT /rules/asset/{id}
809
+ * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
810
+ */
811
+ updateAssetRuleset(id: any, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
812
+ /**
813
+ * HTTP GET /rules/geofences/{assetId}
814
+ * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
815
+ */
816
+ getAssetGeofences(assetId: any, options?: O): RestResponse<Model.GeofenceDefinition[]>;
817
+ /**
818
+ * HTTP GET /rules/info/asset/{assetId}
819
+ * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
820
+ */
821
+ getAssetEngineInfo(assetId: any, options?: O): RestResponse<Model.RulesEngineInfo>;
822
+ /**
823
+ * HTTP GET /rules/info/global
824
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
825
+ */
826
+ getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
827
+ /**
828
+ * HTTP GET /rules/info/realm/{realm}
829
+ * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
830
+ */
831
+ getRealmEngineInfo(realm: any, options?: O): RestResponse<Model.RulesEngineInfo>;
832
+ /**
833
+ * HTTP POST /rules/realm
834
+ * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
835
+ */
836
+ createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
837
+ /**
838
+ * HTTP GET /rules/realm/for/{realm}
839
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
840
+ */
841
+ getRealmRulesets(realm: any, queryParams?: {
842
+ language?: Model.RulesetLang[];
843
+ fullyPopulate?: boolean;
844
+ }, options?: O): RestResponse<Model.RealmRuleset[]>;
845
+ /**
846
+ * HTTP DELETE /rules/realm/{id}
847
+ * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
848
+ */
849
+ deleteRealmRuleset(id: any, options?: O): RestResponse<void>;
850
+ /**
851
+ * HTTP GET /rules/realm/{id}
852
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
853
+ */
854
+ getRealmRuleset(id: any, options?: O): RestResponse<Model.RealmRuleset>;
855
+ /**
856
+ * HTTP PUT /rules/realm/{id}
857
+ * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
858
+ */
859
+ updateRealmRuleset(id: any, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
860
+ /**
861
+ * HTTP DELETE /rules/{id}
862
+ * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
863
+ */
864
+ deleteGlobalRuleset(id: any, options?: O): RestResponse<void>;
865
+ /**
866
+ * HTTP GET /rules/{id}
867
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
868
+ */
869
+ getGlobalRuleset(id: any, options?: O): RestResponse<Model.GlobalRuleset>;
870
+ /**
871
+ * HTTP PUT /rules/{id}
872
+ * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
873
+ */
874
+ updateGlobalRuleset(id: any, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
875
+ }
876
876
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
877
877
  export declare class ApiClient {
878
+ protected _notificationResource: AxiosNotificationResourceClient;
879
+ protected _gatewayClientResource: AxiosGatewayClientResourceClient;
878
880
  protected _agentResource: AxiosAgentResourceClient;
879
- protected _userResource: AxiosUserResourceClient;
880
- protected _realmResource: AxiosRealmResourceClient;
881
- protected _configurationResource: AxiosConfigurationResourceClient;
882
- protected _assetResource: AxiosAssetResourceClient;
883
- protected _consoleResource: AxiosConsoleResourceClient;
884
- protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
881
+ protected _dashboardResource: AxiosDashboardResourceClient;
885
882
  protected _statusResource: AxiosStatusResourceClient;
886
- protected _alarmResource: AxiosAlarmResourceClient;
883
+ protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
884
+ protected _assetResource: AxiosAssetResourceClient;
887
885
  protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
888
- protected _provisioningResource: AxiosProvisioningResourceClient;
886
+ protected _realmResource: AxiosRealmResourceClient;
887
+ protected _alarmResource: AxiosAlarmResourceClient;
889
888
  protected _syslogResource: AxiosSyslogResourceClient;
890
- protected _assetModelResource: AxiosAssetModelResourceClient;
891
- protected _gatewayClientResource: AxiosGatewayClientResourceClient;
892
- protected _rulesResource: AxiosRulesResourceClient;
893
- protected _notificationResource: AxiosNotificationResourceClient;
889
+ protected _provisioningResource: AxiosProvisioningResourceClient;
894
890
  protected _flowResource: AxiosFlowResourceClient;
895
- protected _dashboardResource: AxiosDashboardResourceClient;
896
- protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
891
+ protected _configurationResource: AxiosConfigurationResourceClient;
892
+ protected _assetModelResource: AxiosAssetModelResourceClient;
893
+ protected _userResource: AxiosUserResourceClient;
894
+ protected _consoleResource: AxiosConsoleResourceClient;
897
895
  protected _appResource: AxiosAppResourceClient;
898
896
  protected _mapResource: AxiosMapResourceClient;
897
+ protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
898
+ protected _rulesResource: AxiosRulesResourceClient;
899
899
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
900
+ get NotificationResource(): AxiosNotificationResourceClient;
901
+ get GatewayClientResource(): AxiosGatewayClientResourceClient;
900
902
  get AgentResource(): AxiosAgentResourceClient;
901
- get UserResource(): AxiosUserResourceClient;
902
- get RealmResource(): AxiosRealmResourceClient;
903
- get ConfigurationResource(): AxiosConfigurationResourceClient;
904
- get AssetResource(): AxiosAssetResourceClient;
905
- get ConsoleResource(): AxiosConsoleResourceClient;
906
- get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
903
+ get DashboardResource(): AxiosDashboardResourceClient;
907
904
  get StatusResource(): AxiosStatusResourceClient;
908
- get AlarmResource(): AxiosAlarmResourceClient;
905
+ get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
906
+ get AssetResource(): AxiosAssetResourceClient;
909
907
  get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
910
- get ProvisioningResource(): AxiosProvisioningResourceClient;
908
+ get RealmResource(): AxiosRealmResourceClient;
909
+ get AlarmResource(): AxiosAlarmResourceClient;
911
910
  get SyslogResource(): AxiosSyslogResourceClient;
912
- get AssetModelResource(): AxiosAssetModelResourceClient;
913
- get GatewayClientResource(): AxiosGatewayClientResourceClient;
914
- get RulesResource(): AxiosRulesResourceClient;
915
- get NotificationResource(): AxiosNotificationResourceClient;
911
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
916
912
  get FlowResource(): AxiosFlowResourceClient;
917
- get DashboardResource(): AxiosDashboardResourceClient;
918
- get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
913
+ get ConfigurationResource(): AxiosConfigurationResourceClient;
914
+ get AssetModelResource(): AxiosAssetModelResourceClient;
915
+ get UserResource(): AxiosUserResourceClient;
916
+ get ConsoleResource(): AxiosConsoleResourceClient;
919
917
  get AppResource(): AxiosAppResourceClient;
920
918
  get MapResource(): AxiosMapResourceClient;
919
+ get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
920
+ get RulesResource(): AxiosRulesResourceClient;
921
921
  }
922
922
  import * as Axios from "axios";
923
923
  declare module "axios" {
@@ -925,66 +925,66 @@ declare module "axios" {
925
925
  data: R;
926
926
  }
927
927
  }
928
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
928
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
929
929
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
930
930
  }
931
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
931
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
932
932
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
933
933
  }
934
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
934
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
935
935
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
936
936
  }
937
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
937
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
938
938
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
939
939
  }
940
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
940
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
941
941
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
942
942
  }
943
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
943
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<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 AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
947
947
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
948
948
  }
949
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
949
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
950
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
951
+ }
952
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
950
953
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
951
954
  }
952
955
  export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
953
956
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
954
957
  }
955
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
958
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
956
959
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
957
960
  }
958
961
  export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
959
962
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
960
963
  }
961
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
964
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
962
965
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
963
966
  }
964
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
967
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
965
968
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
966
969
  }
967
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
970
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
968
971
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
969
972
  }
970
- export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
973
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
971
974
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
972
975
  }
973
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
976
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
974
977
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
975
978
  }
976
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
979
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
977
980
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
978
981
  }
979
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
982
+ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
980
983
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
981
984
  }
982
985
  export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
983
986
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
984
987
  }
985
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
986
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
987
- }
988
- export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
988
+ export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
989
989
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
990
990
  }