@openremote/rest 1.14.0-snapshot.20260113102756 → 1.14.0-snapshot.20260114140743

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,31 +9,77 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class AssetDatapointResourceClient<O> {
12
+ export declare class DashboardResourceClient<O> {
13
13
  protected httpClient: HttpClient<O>;
14
14
  constructor(httpClient: HttpClient<O>);
15
15
  /**
16
- * HTTP GET /asset/datapoint/export
17
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
16
+ * HTTP POST /dashboard
17
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
18
18
  */
19
- getDatapointExport(queryParams?: {
20
- attributeRefs?: string;
21
- fromTimestamp?: number;
22
- toTimestamp?: number;
23
- }, options?: O): RestResponse<any>;
19
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
24
20
  /**
25
- * HTTP GET /asset/datapoint/periods
26
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
21
+ * HTTP PUT /dashboard
22
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
27
23
  */
28
- getDatapointPeriod(queryParams?: {
29
- assetId?: string;
30
- attributeName?: string;
31
- }, options?: O): RestResponse<Model.DatapointPeriod>;
24
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
32
25
  /**
33
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
34
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
26
+ * HTTP GET /dashboard/all/{realm}
27
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
35
28
  */
36
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
29
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
30
+ /**
31
+ * HTTP POST /dashboard/query
32
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
33
+ */
34
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
35
+ /**
36
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
37
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
38
+ */
39
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
40
+ /**
41
+ * HTTP GET /dashboard/{realm}/{dashboardId}
42
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
43
+ */
44
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
45
+ }
46
+ export declare class ProvisioningResourceClient<O> {
47
+ protected httpClient: HttpClient<O>;
48
+ constructor(httpClient: HttpClient<O>);
49
+ /**
50
+ * HTTP POST /provisioning
51
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
52
+ */
53
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
54
+ /**
55
+ * HTTP GET /provisioning
56
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
57
+ */
58
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
59
+ /**
60
+ * HTTP DELETE /provisioning/{id}
61
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
62
+ */
63
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
64
+ /**
65
+ * HTTP PUT /provisioning/{id}
66
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
67
+ */
68
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
69
+ }
70
+ export declare class AssetPredictedDatapointResourceClient<O> {
71
+ protected httpClient: HttpClient<O>;
72
+ constructor(httpClient: HttpClient<O>);
73
+ /**
74
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
75
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
76
+ */
77
+ getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
78
+ /**
79
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
80
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
81
+ */
82
+ writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
37
83
  }
38
84
  export declare class AgentResourceClient<O> {
39
85
  protected httpClient: HttpClient<O>;
@@ -61,6 +107,24 @@ export declare class AgentResourceClient<O> {
61
107
  realm?: string;
62
108
  }, options?: O): RestResponse<Model.Agent[]>;
63
109
  }
110
+ export declare class StatusResourceClient<O> {
111
+ protected httpClient: HttpClient<O>;
112
+ constructor(httpClient: HttpClient<O>);
113
+ /**
114
+ * HTTP GET /health
115
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
116
+ */
117
+ getHealthStatus(options?: O): RestResponse<{
118
+ [index: string]: any;
119
+ }>;
120
+ /**
121
+ * HTTP GET /info
122
+ * Java method: org.openremote.model.system.StatusResource.getInfo
123
+ */
124
+ getInfo(options?: O): RestResponse<{
125
+ [index: string]: any;
126
+ }>;
127
+ }
64
128
  export declare class ExternalServiceResourceClient<O> {
65
129
  protected httpClient: HttpClient<O>;
66
130
  constructor(httpClient: HttpClient<O>);
@@ -116,303 +180,144 @@ export declare class ExternalServiceResourceClient<O> {
116
180
  */
117
181
  heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
118
182
  }
119
- export declare class UserResourceClient<O> {
183
+ export declare class SyslogResourceClient<O> {
120
184
  protected httpClient: HttpClient<O>;
121
185
  constructor(httpClient: HttpClient<O>);
122
186
  /**
123
- * HTTP PUT /user/locale
124
- * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
187
+ * HTTP GET /syslog/config
188
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
125
189
  */
126
- updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
190
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
127
191
  /**
128
- * HTTP POST /user/query
129
- * Java method: org.openremote.model.security.UserResource.query
192
+ * HTTP PUT /syslog/config
193
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
130
194
  */
131
- query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
195
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
132
196
  /**
133
- * HTTP PUT /user/request-password-reset
134
- * Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
197
+ * HTTP DELETE /syslog/event
198
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
135
199
  */
136
- requestPasswordResetCurrent(options?: O): RestResponse<void>;
200
+ clearEvents(options?: O): RestResponse<void>;
137
201
  /**
138
- * HTTP PUT /user/reset-password
139
- * Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
202
+ * HTTP GET /syslog/event
203
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
140
204
  */
141
- updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
205
+ getEvents(queryParams?: {
206
+ level?: Model.SyslogLevel;
207
+ per_page?: number;
208
+ page?: number;
209
+ from?: number;
210
+ to?: number;
211
+ category?: Model.SyslogCategory[];
212
+ subCategory?: string[];
213
+ }, options?: O): RestResponse<any>;
214
+ }
215
+ export declare class AlarmResourceClient<O> {
216
+ protected httpClient: HttpClient<O>;
217
+ constructor(httpClient: HttpClient<O>);
142
218
  /**
143
- * HTTP PUT /user/update
144
- * Java method: org.openremote.model.security.UserResource.updateCurrent
219
+ * HTTP POST /alarm
220
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
145
221
  */
146
- updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
222
+ createAlarm(alarm: Model.Alarm, queryParams?: {
223
+ assetIds?: string[];
224
+ }, options?: O): RestResponse<Model.SentAlarm>;
147
225
  /**
148
- * HTTP GET /user/user
149
- * Java method: org.openremote.model.security.UserResource.getCurrent
226
+ * HTTP GET /alarm
227
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
150
228
  */
151
- getCurrent(options?: O): RestResponse<Model.User>;
229
+ getAlarms(queryParams?: {
230
+ realm?: string;
231
+ status?: Model.AlarmStatus;
232
+ assetId?: string;
233
+ assigneeId?: string;
234
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
152
235
  /**
153
- * HTTP GET /user/userRealmRoles
154
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
236
+ * HTTP DELETE /alarm
237
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
155
238
  */
156
- getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
239
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
157
240
  /**
158
- * HTTP GET /user/userRoles/{clientId}
159
- * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
241
+ * HTTP PUT /alarm/assets
242
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
160
243
  */
161
- getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
244
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
162
245
  /**
163
- * HTTP GET /user/{realm}/disconnect/{sessionID}
164
- * Java method: org.openremote.model.security.UserResource.disconnectUserSession
246
+ * HTTP GET /alarm/{alarmId}
247
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
165
248
  */
166
- disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
249
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
167
250
  /**
168
- * HTTP PUT /user/{realm}/request-password-reset/{userId}
169
- * Java method: org.openremote.model.security.UserResource.requestPasswordReset
251
+ * HTTP DELETE /alarm/{alarmId}
252
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
170
253
  */
171
- requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
254
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
172
255
  /**
173
- * HTTP PUT /user/{realm}/reset-password/{userId}
174
- * Java method: org.openremote.model.security.UserResource.updatePassword
256
+ * HTTP PUT /alarm/{alarmId}
257
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
175
258
  */
176
- updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
259
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
177
260
  /**
178
- * HTTP GET /user/{realm}/reset-secret/{userId}
179
- * Java method: org.openremote.model.security.UserResource.resetSecret
261
+ * HTTP GET /alarm/{alarmId}/assets
262
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
180
263
  */
181
- resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
264
+ getAssetLinks(alarmId: number, queryParams?: {
265
+ realm?: string;
266
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
267
+ }
268
+ export declare class FlowResourceClient<O> {
269
+ protected httpClient: HttpClient<O>;
270
+ constructor(httpClient: HttpClient<O>);
182
271
  /**
183
- * HTTP PUT /user/{realm}/roles
184
- * Java method: org.openremote.model.security.UserResource.updateRoles
272
+ * HTTP GET /flow
273
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
185
274
  */
186
- updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
275
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
187
276
  /**
188
- * HTTP GET /user/{realm}/userRealmRoles/{userId}
189
- * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
277
+ * HTTP GET /flow/{name}
278
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
190
279
  */
191
- getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
280
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
192
281
  /**
193
- * HTTP PUT /user/{realm}/userRealmRoles/{userId}
194
- * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
282
+ * HTTP GET /flow/{type}
283
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
195
284
  */
196
- updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
285
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
286
+ }
287
+ export declare class AssetDatapointResourceClient<O> {
288
+ protected httpClient: HttpClient<O>;
289
+ constructor(httpClient: HttpClient<O>);
197
290
  /**
198
- * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
199
- * Java method: org.openremote.model.security.UserResource.getUserClientRoles
291
+ * HTTP GET /asset/datapoint/export
292
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
200
293
  */
201
- getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
294
+ getDatapointExport(queryParams?: {
295
+ attributeRefs?: string;
296
+ fromTimestamp?: number;
297
+ toTimestamp?: number;
298
+ }, options?: O): RestResponse<any>;
202
299
  /**
203
- * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
204
- * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
300
+ * HTTP GET /asset/datapoint/periods
301
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
205
302
  */
206
- updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
303
+ getDatapointPeriod(queryParams?: {
304
+ assetId?: string;
305
+ attributeName?: string;
306
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
207
307
  /**
208
- * HTTP GET /user/{realm}/userSessions/{userId}
209
- * Java method: org.openremote.model.security.UserResource.getUserSessions
308
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
309
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
210
310
  */
211
- getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
311
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
312
+ }
313
+ export declare class AssetResourceClient<O> {
314
+ protected httpClient: HttpClient<O>;
315
+ constructor(httpClient: HttpClient<O>);
212
316
  /**
213
- * HTTP POST /user/{realm}/users
214
- * Java method: org.openremote.model.security.UserResource.create
317
+ * HTTP POST /asset
318
+ * Java method: org.openremote.model.asset.AssetResource.create
215
319
  */
216
- create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
217
- /**
218
- * HTTP PUT /user/{realm}/users
219
- * Java method: org.openremote.model.security.UserResource.update
220
- */
221
- update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
222
- /**
223
- * HTTP DELETE /user/{realm}/users/{userId}
224
- * Java method: org.openremote.model.security.UserResource.delete
225
- */
226
- delete(realm: string, userId: string, options?: O): RestResponse<void>;
227
- /**
228
- * HTTP GET /user/{realm}/{clientId}/roles
229
- * Java method: org.openremote.model.security.UserResource.getClientRoles
230
- */
231
- getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
232
- /**
233
- * HTTP PUT /user/{realm}/{clientId}/roles
234
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
235
- */
236
- updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
237
- /**
238
- * HTTP GET /user/{realm}/{userId}
239
- * Java method: org.openremote.model.security.UserResource.get
240
- */
241
- get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
242
- }
243
- export declare class GatewayServiceResourceClient<O> {
244
- protected httpClient: HttpClient<O>;
245
- constructor(httpClient: HttpClient<O>);
246
- /**
247
- * HTTP POST /gateway/tunnel
248
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
249
- */
250
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
251
- /**
252
- * HTTP DELETE /gateway/tunnel
253
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
254
- */
255
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
256
- /**
257
- * HTTP GET /gateway/tunnel/{realm}
258
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
259
- */
260
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
261
- /**
262
- * HTTP GET /gateway/tunnel/{realm}/{id}
263
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
264
- */
265
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
266
- /**
267
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
268
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
269
- */
270
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
271
- }
272
- export declare class AssetPredictedDatapointResourceClient<O> {
273
- protected httpClient: HttpClient<O>;
274
- constructor(httpClient: HttpClient<O>);
275
- /**
276
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
277
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
278
- */
279
- getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
280
- /**
281
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
282
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
283
- */
284
- writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
285
- }
286
- export declare class StatusResourceClient<O> {
287
- protected httpClient: HttpClient<O>;
288
- constructor(httpClient: HttpClient<O>);
289
- /**
290
- * HTTP GET /health
291
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
292
- */
293
- getHealthStatus(options?: O): RestResponse<{
294
- [index: string]: any;
295
- }>;
296
- /**
297
- * HTTP GET /info
298
- * Java method: org.openremote.model.system.StatusResource.getInfo
299
- */
300
- getInfo(options?: O): RestResponse<{
301
- [index: string]: any;
302
- }>;
303
- }
304
- export declare class NotificationResourceClient<O> {
305
- protected httpClient: HttpClient<O>;
306
- constructor(httpClient: HttpClient<O>);
307
- /**
308
- * HTTP GET /notification
309
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
310
- */
311
- getNotifications(queryParams?: {
312
- id?: number;
313
- type?: string;
314
- from?: number;
315
- to?: number;
316
- realmId?: string;
317
- userId?: string;
318
- assetId?: string;
319
- }, options?: O): RestResponse<Model.SentNotification[]>;
320
- /**
321
- * HTTP DELETE /notification
322
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
323
- */
324
- removeNotifications(queryParams?: {
325
- id?: number;
326
- type?: string;
327
- from?: number;
328
- to?: number;
329
- realmId?: string;
330
- userId?: string;
331
- assetId?: string;
332
- }, options?: O): RestResponse<void>;
333
- /**
334
- * HTTP POST /notification/alert
335
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
336
- */
337
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
338
- /**
339
- * HTTP DELETE /notification/{notificationId}
340
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
341
- */
342
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
343
- /**
344
- * HTTP PUT /notification/{notificationId}/acknowledged
345
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
346
- */
347
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
348
- targetId?: string;
349
- }, options?: O): RestResponse<void>;
350
- /**
351
- * HTTP PUT /notification/{notificationId}/delivered
352
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
353
- */
354
- notificationDelivered(notificationId: number, queryParams?: {
355
- targetId?: string;
356
- }, options?: O): RestResponse<void>;
357
- }
358
- export declare class ConfigurationResourceClient<O> {
359
- protected httpClient: HttpClient<O>;
360
- constructor(httpClient: HttpClient<O>);
361
- /**
362
- * HTTP GET /configuration/manager
363
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
364
- */
365
- getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
366
- /**
367
- * HTTP PUT /configuration/manager
368
- * Java method: org.openremote.model.manager.ConfigurationResource.update
369
- */
370
- update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
371
- /**
372
- * HTTP POST /configuration/manager/file
373
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
374
- */
375
- fileUpload(fileInfo: Model.FileInfo, queryParams?: {
376
- path?: string;
377
- }, options?: O): RestResponse<string>;
378
- /**
379
- * HTTP GET /configuration/manager/image/{filename: .+}
380
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
381
- */
382
- getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
383
- }
384
- export declare class ProvisioningResourceClient<O> {
385
- protected httpClient: HttpClient<O>;
386
- constructor(httpClient: HttpClient<O>);
387
- /**
388
- * HTTP POST /provisioning
389
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
390
- */
391
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
392
- /**
393
- * HTTP GET /provisioning
394
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
395
- */
396
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
397
- /**
398
- * HTTP DELETE /provisioning/{id}
399
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
400
- */
401
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
402
- /**
403
- * HTTP PUT /provisioning/{id}
404
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
405
- */
406
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
407
- }
408
- export declare class AssetResourceClient<O> {
409
- protected httpClient: HttpClient<O>;
410
- constructor(httpClient: HttpClient<O>);
411
- /**
412
- * HTTP POST /asset
413
- * Java method: org.openremote.model.asset.AssetResource.create
414
- */
415
- create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
320
+ create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
416
321
  /**
417
322
  * HTTP DELETE /asset
418
323
  * Java method: org.openremote.model.asset.AssetResource.delete
@@ -519,101 +424,148 @@ export declare class AssetResourceClient<O> {
519
424
  assetIds?: string[];
520
425
  }, options?: O): RestResponse<void>;
521
426
  }
522
- export declare class DashboardResourceClient<O> {
427
+ export declare class GatewayClientResourceClient<O> {
523
428
  protected httpClient: HttpClient<O>;
524
429
  constructor(httpClient: HttpClient<O>);
525
430
  /**
526
- * HTTP POST /dashboard
527
- * Java method: org.openremote.model.dashboard.DashboardResource.create
431
+ * HTTP DELETE /gateway/connection
432
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
528
433
  */
529
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
434
+ deleteConnections(queryParams?: {
435
+ realm?: string[];
436
+ }, options?: O): RestResponse<void>;
530
437
  /**
531
- * HTTP PUT /dashboard
532
- * Java method: org.openremote.model.dashboard.DashboardResource.update
438
+ * HTTP GET /gateway/connection
439
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
533
440
  */
534
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
441
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
535
442
  /**
536
- * HTTP GET /dashboard/all/{realm}
537
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
443
+ * HTTP DELETE /gateway/connection/{realm}
444
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
538
445
  */
539
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
446
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
540
447
  /**
541
- * HTTP POST /dashboard/query
542
- * Java method: org.openremote.model.dashboard.DashboardResource.query
448
+ * HTTP GET /gateway/connection/{realm}
449
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
543
450
  */
544
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
451
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
545
452
  /**
546
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
547
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
453
+ * HTTP PUT /gateway/connection/{realm}
454
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
548
455
  */
549
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
456
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
550
457
  /**
551
- * HTTP GET /dashboard/{realm}/{dashboardId}
552
- * Java method: org.openremote.model.dashboard.DashboardResource.get
458
+ * HTTP GET /gateway/status/{realm}
459
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
553
460
  */
554
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
461
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
555
462
  }
556
- export declare class ConsoleResourceClient<O> {
463
+ export declare class AssetModelResourceClient<O> {
557
464
  protected httpClient: HttpClient<O>;
558
465
  constructor(httpClient: HttpClient<O>);
559
466
  /**
560
- * HTTP POST /console/register
561
- * Java method: org.openremote.model.console.ConsoleResource.register
467
+ * HTTP GET /model/assetDescriptors
468
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
562
469
  */
563
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
564
- }
565
- export declare class AlarmResourceClient<O> {
566
- protected httpClient: HttpClient<O>;
567
- constructor(httpClient: HttpClient<O>);
470
+ getAssetDescriptors(queryParams?: {
471
+ parentId?: string;
472
+ parentType?: string;
473
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
568
474
  /**
569
- * HTTP POST /alarm
570
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
475
+ * HTTP GET /model/assetInfo/{assetType}
476
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
571
477
  */
572
- createAlarm(alarm: Model.Alarm, queryParams?: {
573
- assetIds?: string[];
574
- }, options?: O): RestResponse<Model.SentAlarm>;
478
+ getAssetInfo(assetType: string, queryParams?: {
479
+ parentId?: string;
480
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
575
481
  /**
576
- * HTTP GET /alarm
577
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
482
+ * HTTP GET /model/assetInfos
483
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
578
484
  */
579
- getAlarms(queryParams?: {
580
- realm?: string;
581
- status?: Model.AlarmStatus;
582
- assetId?: string;
583
- assigneeId?: string;
584
- }, options?: O): RestResponse<Model.SentAlarm[]>;
485
+ getAssetInfos(queryParams?: {
486
+ parentId?: string;
487
+ parentType?: string;
488
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
585
489
  /**
586
- * HTTP DELETE /alarm
587
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
490
+ * HTTP GET /model/getValueDescriptorSchema
491
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
588
492
  */
589
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
493
+ getValueDescriptorSchema(queryParams?: {
494
+ name?: string;
495
+ hash?: string;
496
+ }, options?: O): RestResponse<any>;
590
497
  /**
591
- * HTTP PUT /alarm/assets
592
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
498
+ * HTTP GET /model/metaItemDescriptors
499
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
593
500
  */
594
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
501
+ getMetaItemDescriptors(queryParams?: {
502
+ parentId?: string;
503
+ }, options?: O): RestResponse<{
504
+ [index: string]: Model.MetaItemDescriptor;
505
+ }>;
595
506
  /**
596
- * HTTP GET /alarm/{alarmId}
597
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
507
+ * HTTP GET /model/valueDescriptors
508
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
598
509
  */
599
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
510
+ getValueDescriptors(queryParams?: {
511
+ parentId?: string;
512
+ }, options?: O): RestResponse<{
513
+ [index: string]: Model.ValueDescriptor;
514
+ }>;
515
+ }
516
+ export declare class NotificationResourceClient<O> {
517
+ protected httpClient: HttpClient<O>;
518
+ constructor(httpClient: HttpClient<O>);
600
519
  /**
601
- * HTTP DELETE /alarm/{alarmId}
602
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
520
+ * HTTP GET /notification
521
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
603
522
  */
604
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
523
+ getNotifications(queryParams?: {
524
+ id?: number;
525
+ type?: string;
526
+ from?: number;
527
+ to?: number;
528
+ realmId?: string;
529
+ userId?: string;
530
+ assetId?: string;
531
+ }, options?: O): RestResponse<Model.SentNotification[]>;
605
532
  /**
606
- * HTTP PUT /alarm/{alarmId}
607
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
533
+ * HTTP DELETE /notification
534
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
608
535
  */
609
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
536
+ removeNotifications(queryParams?: {
537
+ id?: number;
538
+ type?: string;
539
+ from?: number;
540
+ to?: number;
541
+ realmId?: string;
542
+ userId?: string;
543
+ assetId?: string;
544
+ }, options?: O): RestResponse<void>;
610
545
  /**
611
- * HTTP GET /alarm/{alarmId}/assets
612
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
546
+ * HTTP POST /notification/alert
547
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
613
548
  */
614
- getAssetLinks(alarmId: number, queryParams?: {
615
- realm?: string;
616
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
549
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
550
+ /**
551
+ * HTTP DELETE /notification/{notificationId}
552
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
553
+ */
554
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
555
+ /**
556
+ * HTTP PUT /notification/{notificationId}/acknowledged
557
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
558
+ */
559
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
560
+ targetId?: string;
561
+ }, options?: O): RestResponse<void>;
562
+ /**
563
+ * HTTP PUT /notification/{notificationId}/delivered
564
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
565
+ */
566
+ notificationDelivered(notificationId: number, queryParams?: {
567
+ targetId?: string;
568
+ }, options?: O): RestResponse<void>;
617
569
  }
618
570
  export declare class MapResourceClient<O> {
619
571
  protected httpClient: HttpClient<O>;
@@ -668,128 +620,198 @@ export declare class MapResourceClient<O> {
668
620
  [id: string]: unknown;
669
621
  }>;
670
622
  }
671
- export declare class AssetModelResourceClient<O> {
623
+ export declare class ConfigurationResourceClient<O> {
672
624
  protected httpClient: HttpClient<O>;
673
625
  constructor(httpClient: HttpClient<O>);
674
626
  /**
675
- * HTTP GET /model/assetDescriptors
676
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
627
+ * HTTP GET /configuration/manager
628
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
677
629
  */
678
- getAssetDescriptors(queryParams?: {
679
- parentId?: string;
680
- parentType?: string;
681
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
630
+ getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
682
631
  /**
683
- * HTTP GET /model/assetInfo/{assetType}
684
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
632
+ * HTTP PUT /configuration/manager
633
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
685
634
  */
686
- getAssetInfo(assetType: string, queryParams?: {
687
- parentId?: string;
688
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
635
+ update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
689
636
  /**
690
- * HTTP GET /model/assetInfos
691
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
637
+ * HTTP POST /configuration/manager/file
638
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
692
639
  */
693
- getAssetInfos(queryParams?: {
694
- parentId?: string;
695
- parentType?: string;
696
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
640
+ fileUpload(fileInfo: Model.FileInfo, queryParams?: {
641
+ path?: string;
642
+ }, options?: O): RestResponse<string>;
697
643
  /**
698
- * HTTP GET /model/getValueDescriptorSchema
699
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
644
+ * HTTP GET /configuration/manager/image/{filename: .+}
645
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
700
646
  */
701
- getValueDescriptorSchema(queryParams?: {
702
- name?: string;
703
- hash?: string;
704
- }, options?: O): RestResponse<any>;
647
+ getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
648
+ }
649
+ export declare class RealmResourceClient<O> {
650
+ protected httpClient: HttpClient<O>;
651
+ constructor(httpClient: HttpClient<O>);
705
652
  /**
706
- * HTTP GET /model/metaItemDescriptors
707
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
653
+ * HTTP POST /realm
654
+ * Java method: org.openremote.model.security.RealmResource.create
708
655
  */
709
- getMetaItemDescriptors(queryParams?: {
710
- parentId?: string;
711
- }, options?: O): RestResponse<{
712
- [index: string]: Model.MetaItemDescriptor;
713
- }>;
656
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
714
657
  /**
715
- * HTTP GET /model/valueDescriptors
716
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
658
+ * HTTP GET /realm
659
+ * Java method: org.openremote.model.security.RealmResource.getAll
717
660
  */
718
- getValueDescriptors(queryParams?: {
719
- parentId?: string;
720
- }, options?: O): RestResponse<{
721
- [index: string]: Model.ValueDescriptor;
722
- }>;
661
+ getAll(options?: O): RestResponse<Model.Realm[]>;
662
+ /**
663
+ * HTTP GET /realm/accessible
664
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
665
+ */
666
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
667
+ /**
668
+ * HTTP DELETE /realm/{name}
669
+ * Java method: org.openremote.model.security.RealmResource.delete
670
+ */
671
+ delete(name: string, options?: O): RestResponse<void>;
672
+ /**
673
+ * HTTP GET /realm/{name}
674
+ * Java method: org.openremote.model.security.RealmResource.get
675
+ */
676
+ get(name: string, options?: O): RestResponse<Model.Realm>;
677
+ /**
678
+ * HTTP PUT /realm/{name}
679
+ * Java method: org.openremote.model.security.RealmResource.update
680
+ */
681
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
723
682
  }
724
- export declare class SyslogResourceClient<O> {
683
+ export declare class ConsoleResourceClient<O> {
684
+ protected httpClient: HttpClient<O>;
685
+ constructor(httpClient: HttpClient<O>);
686
+ /**
687
+ * HTTP POST /console/register
688
+ * Java method: org.openremote.model.console.ConsoleResource.register
689
+ */
690
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
691
+ }
692
+ export declare class UserResourceClient<O> {
725
693
  protected httpClient: HttpClient<O>;
726
694
  constructor(httpClient: HttpClient<O>);
727
695
  /**
728
- * HTTP GET /syslog/config
729
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
696
+ * HTTP PUT /user/locale
697
+ * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
698
+ */
699
+ updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
700
+ /**
701
+ * HTTP POST /user/query
702
+ * Java method: org.openremote.model.security.UserResource.query
703
+ */
704
+ query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
705
+ /**
706
+ * HTTP PUT /user/request-password-reset
707
+ * Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
708
+ */
709
+ requestPasswordResetCurrent(options?: O): RestResponse<void>;
710
+ /**
711
+ * HTTP PUT /user/reset-password
712
+ * Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
713
+ */
714
+ updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
715
+ /**
716
+ * HTTP PUT /user/update
717
+ * Java method: org.openremote.model.security.UserResource.updateCurrent
718
+ */
719
+ updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
720
+ /**
721
+ * HTTP GET /user/user
722
+ * Java method: org.openremote.model.security.UserResource.getCurrent
723
+ */
724
+ getCurrent(options?: O): RestResponse<Model.User>;
725
+ /**
726
+ * HTTP GET /user/userRealmRoles
727
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
728
+ */
729
+ getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
730
+ /**
731
+ * HTTP GET /user/userRoles/{clientId}
732
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
733
+ */
734
+ getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
735
+ /**
736
+ * HTTP GET /user/{realm}/disconnect/{sessionID}
737
+ * Java method: org.openremote.model.security.UserResource.disconnectUserSession
738
+ */
739
+ disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
740
+ /**
741
+ * HTTP PUT /user/{realm}/request-password-reset/{userId}
742
+ * Java method: org.openremote.model.security.UserResource.requestPasswordReset
743
+ */
744
+ requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
745
+ /**
746
+ * HTTP PUT /user/{realm}/reset-password/{userId}
747
+ * Java method: org.openremote.model.security.UserResource.updatePassword
748
+ */
749
+ updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
750
+ /**
751
+ * HTTP GET /user/{realm}/reset-secret/{userId}
752
+ * Java method: org.openremote.model.security.UserResource.resetSecret
753
+ */
754
+ resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
755
+ /**
756
+ * HTTP PUT /user/{realm}/roles
757
+ * Java method: org.openremote.model.security.UserResource.updateRoles
758
+ */
759
+ updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
760
+ /**
761
+ * HTTP GET /user/{realm}/userRealmRoles/{userId}
762
+ * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
763
+ */
764
+ getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
765
+ /**
766
+ * HTTP PUT /user/{realm}/userRealmRoles/{userId}
767
+ * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
730
768
  */
731
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
769
+ updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
732
770
  /**
733
- * HTTP PUT /syslog/config
734
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
771
+ * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
772
+ * Java method: org.openremote.model.security.UserResource.getUserClientRoles
735
773
  */
736
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
774
+ getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
737
775
  /**
738
- * HTTP DELETE /syslog/event
739
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
776
+ * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
777
+ * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
740
778
  */
741
- clearEvents(options?: O): RestResponse<void>;
779
+ updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
742
780
  /**
743
- * HTTP GET /syslog/event
744
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
781
+ * HTTP GET /user/{realm}/userSessions/{userId}
782
+ * Java method: org.openremote.model.security.UserResource.getUserSessions
745
783
  */
746
- getEvents(queryParams?: {
747
- level?: Model.SyslogLevel;
748
- per_page?: number;
749
- page?: number;
750
- from?: number;
751
- to?: number;
752
- category?: Model.SyslogCategory[];
753
- subCategory?: string[];
754
- }, options?: O): RestResponse<any>;
755
- }
756
- export declare class AppResourceClient<O> {
757
- protected httpClient: HttpClient<O>;
758
- constructor(httpClient: HttpClient<O>);
784
+ getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
759
785
  /**
760
- * HTTP GET /apps
761
- * Java method: org.openremote.model.apps.AppResource.getApps
786
+ * HTTP POST /user/{realm}/users
787
+ * Java method: org.openremote.model.security.UserResource.create
762
788
  */
763
- getApps(options?: O): RestResponse<string[]>;
789
+ create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
764
790
  /**
765
- * HTTP GET /apps/consoleConfig
766
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
791
+ * HTTP PUT /user/{realm}/users
792
+ * Java method: org.openremote.model.security.UserResource.update
767
793
  */
768
- getConsoleConfig(options?: O): RestResponse<any>;
794
+ update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
769
795
  /**
770
- * HTTP GET /apps/info
771
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
796
+ * HTTP DELETE /user/{realm}/users/{userId}
797
+ * Java method: org.openremote.model.security.UserResource.delete
772
798
  */
773
- getAppInfos(options?: O): RestResponse<any>;
774
- }
775
- export declare class FlowResourceClient<O> {
776
- protected httpClient: HttpClient<O>;
777
- constructor(httpClient: HttpClient<O>);
799
+ delete(realm: string, userId: string, options?: O): RestResponse<void>;
778
800
  /**
779
- * HTTP GET /flow
780
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
801
+ * HTTP GET /user/{realm}/{clientId}/roles
802
+ * Java method: org.openremote.model.security.UserResource.getClientRoles
781
803
  */
782
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
804
+ getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
783
805
  /**
784
- * HTTP GET /flow/{name}
785
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
806
+ * HTTP PUT /user/{realm}/{clientId}/roles
807
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
786
808
  */
787
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
809
+ updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
788
810
  /**
789
- * HTTP GET /flow/{type}
790
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
811
+ * HTTP GET /user/{realm}/{userId}
812
+ * Java method: org.openremote.model.security.UserResource.get
791
813
  */
792
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
814
+ get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
793
815
  }
794
816
  export declare class RulesResourceClient<O> {
795
817
  protected httpClient: HttpClient<O>;
@@ -899,123 +921,101 @@ export declare class RulesResourceClient<O> {
899
921
  */
900
922
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
901
923
  }
902
- export declare class GatewayClientResourceClient<O> {
924
+ export declare class AppResourceClient<O> {
903
925
  protected httpClient: HttpClient<O>;
904
926
  constructor(httpClient: HttpClient<O>);
905
927
  /**
906
- * HTTP DELETE /gateway/connection
907
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
908
- */
909
- deleteConnections(queryParams?: {
910
- realm?: string[];
911
- }, options?: O): RestResponse<void>;
912
- /**
913
- * HTTP GET /gateway/connection
914
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
915
- */
916
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
917
- /**
918
- * HTTP DELETE /gateway/connection/{realm}
919
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
920
- */
921
- deleteConnection(realm: string, options?: O): RestResponse<void>;
922
- /**
923
- * HTTP GET /gateway/connection/{realm}
924
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
928
+ * HTTP GET /apps
929
+ * Java method: org.openremote.model.apps.AppResource.getApps
925
930
  */
926
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
931
+ getApps(options?: O): RestResponse<string[]>;
927
932
  /**
928
- * HTTP PUT /gateway/connection/{realm}
929
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
933
+ * HTTP GET /apps/consoleConfig
934
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
930
935
  */
931
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
936
+ getConsoleConfig(options?: O): RestResponse<any>;
932
937
  /**
933
- * HTTP GET /gateway/status/{realm}
934
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
938
+ * HTTP GET /apps/info
939
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
935
940
  */
936
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
941
+ getAppInfos(options?: O): RestResponse<any>;
937
942
  }
938
- export declare class RealmResourceClient<O> {
943
+ export declare class GatewayServiceResourceClient<O> {
939
944
  protected httpClient: HttpClient<O>;
940
945
  constructor(httpClient: HttpClient<O>);
941
946
  /**
942
- * HTTP POST /realm
943
- * Java method: org.openremote.model.security.RealmResource.create
944
- */
945
- create(realm: Model.Realm, options?: O): RestResponse<void>;
946
- /**
947
- * HTTP GET /realm
948
- * Java method: org.openremote.model.security.RealmResource.getAll
947
+ * HTTP POST /gateway/tunnel
948
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
949
949
  */
950
- getAll(options?: O): RestResponse<Model.Realm[]>;
950
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
951
951
  /**
952
- * HTTP GET /realm/accessible
953
- * Java method: org.openremote.model.security.RealmResource.getAccessible
952
+ * HTTP DELETE /gateway/tunnel
953
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
954
954
  */
955
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
955
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
956
956
  /**
957
- * HTTP DELETE /realm/{name}
958
- * Java method: org.openremote.model.security.RealmResource.delete
957
+ * HTTP GET /gateway/tunnel/{realm}
958
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
959
959
  */
960
- delete(name: string, options?: O): RestResponse<void>;
960
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
961
961
  /**
962
- * HTTP GET /realm/{name}
963
- * Java method: org.openremote.model.security.RealmResource.get
962
+ * HTTP GET /gateway/tunnel/{realm}/{id}
963
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
964
964
  */
965
- get(name: string, options?: O): RestResponse<Model.Realm>;
965
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
966
966
  /**
967
- * HTTP PUT /realm/{name}
968
- * Java method: org.openremote.model.security.RealmResource.update
967
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
968
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
969
969
  */
970
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
970
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
971
971
  }
972
972
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
973
973
  export declare class ApiClient {
974
- protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
975
- protected _agentResource: AxiosAgentResourceClient;
976
- protected _externalServiceResource: AxiosExternalServiceResourceClient;
977
- protected _userResource: AxiosUserResourceClient;
978
- protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
974
+ protected _dashboardResource: AxiosDashboardResourceClient;
975
+ protected _provisioningResource: AxiosProvisioningResourceClient;
979
976
  protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
977
+ protected _agentResource: AxiosAgentResourceClient;
980
978
  protected _statusResource: AxiosStatusResourceClient;
981
- protected _notificationResource: AxiosNotificationResourceClient;
982
- protected _configurationResource: AxiosConfigurationResourceClient;
983
- protected _provisioningResource: AxiosProvisioningResourceClient;
984
- protected _assetResource: AxiosAssetResourceClient;
985
- protected _dashboardResource: AxiosDashboardResourceClient;
986
- protected _consoleResource: AxiosConsoleResourceClient;
987
- protected _alarmResource: AxiosAlarmResourceClient;
988
- protected _mapResource: AxiosMapResourceClient;
989
- protected _assetModelResource: AxiosAssetModelResourceClient;
979
+ protected _externalServiceResource: AxiosExternalServiceResourceClient;
990
980
  protected _syslogResource: AxiosSyslogResourceClient;
991
- protected _appResource: AxiosAppResourceClient;
981
+ protected _alarmResource: AxiosAlarmResourceClient;
992
982
  protected _flowResource: AxiosFlowResourceClient;
993
- protected _rulesResource: AxiosRulesResourceClient;
983
+ protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
984
+ protected _assetResource: AxiosAssetResourceClient;
994
985
  protected _gatewayClientResource: AxiosGatewayClientResourceClient;
986
+ protected _assetModelResource: AxiosAssetModelResourceClient;
987
+ protected _notificationResource: AxiosNotificationResourceClient;
988
+ protected _mapResource: AxiosMapResourceClient;
989
+ protected _configurationResource: AxiosConfigurationResourceClient;
995
990
  protected _realmResource: AxiosRealmResourceClient;
991
+ protected _consoleResource: AxiosConsoleResourceClient;
992
+ protected _userResource: AxiosUserResourceClient;
993
+ protected _rulesResource: AxiosRulesResourceClient;
994
+ protected _appResource: AxiosAppResourceClient;
995
+ protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
996
996
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
997
- get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
998
- get AgentResource(): AxiosAgentResourceClient;
999
- get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1000
- get UserResource(): AxiosUserResourceClient;
1001
- get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
997
+ get DashboardResource(): AxiosDashboardResourceClient;
998
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
1002
999
  get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
1000
+ get AgentResource(): AxiosAgentResourceClient;
1003
1001
  get StatusResource(): AxiosStatusResourceClient;
1004
- get NotificationResource(): AxiosNotificationResourceClient;
1005
- get ConfigurationResource(): AxiosConfigurationResourceClient;
1006
- get ProvisioningResource(): AxiosProvisioningResourceClient;
1007
- get AssetResource(): AxiosAssetResourceClient;
1008
- get DashboardResource(): AxiosDashboardResourceClient;
1009
- get ConsoleResource(): AxiosConsoleResourceClient;
1010
- get AlarmResource(): AxiosAlarmResourceClient;
1011
- get MapResource(): AxiosMapResourceClient;
1012
- get AssetModelResource(): AxiosAssetModelResourceClient;
1002
+ get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1013
1003
  get SyslogResource(): AxiosSyslogResourceClient;
1014
- get AppResource(): AxiosAppResourceClient;
1004
+ get AlarmResource(): AxiosAlarmResourceClient;
1015
1005
  get FlowResource(): AxiosFlowResourceClient;
1016
- get RulesResource(): AxiosRulesResourceClient;
1006
+ get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
1007
+ get AssetResource(): AxiosAssetResourceClient;
1017
1008
  get GatewayClientResource(): AxiosGatewayClientResourceClient;
1009
+ get AssetModelResource(): AxiosAssetModelResourceClient;
1010
+ get NotificationResource(): AxiosNotificationResourceClient;
1011
+ get MapResource(): AxiosMapResourceClient;
1012
+ get ConfigurationResource(): AxiosConfigurationResourceClient;
1018
1013
  get RealmResource(): AxiosRealmResourceClient;
1014
+ get ConsoleResource(): AxiosConsoleResourceClient;
1015
+ get UserResource(): AxiosUserResourceClient;
1016
+ get RulesResource(): AxiosRulesResourceClient;
1017
+ get AppResource(): AxiosAppResourceClient;
1018
+ get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1019
1019
  }
1020
1020
  import * as Axios from "axios";
1021
1021
  declare module "axios" {
@@ -1023,70 +1023,70 @@ declare module "axios" {
1023
1023
  data: R;
1024
1024
  }
1025
1025
  }
1026
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1026
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1027
1027
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1028
1028
  }
1029
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1029
+ export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1030
1030
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1031
1031
  }
1032
- export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1032
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1033
1033
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1034
1034
  }
1035
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1035
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1036
1036
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1037
1037
  }
1038
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1038
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1039
1039
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1040
1040
  }
1041
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1041
+ export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1042
1042
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1043
1043
  }
1044
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1044
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1045
1045
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1046
1046
  }
1047
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1047
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1048
1048
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1049
1049
  }
1050
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1050
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1051
1051
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1052
1052
  }
1053
- export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1053
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1054
1054
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1055
1055
  }
1056
1056
  export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1057
1057
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1058
1058
  }
1059
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1059
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1060
1060
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1061
1061
  }
1062
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1062
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1063
1063
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1064
1064
  }
1065
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1065
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1066
1066
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1067
1067
  }
1068
1068
  export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1069
1069
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1070
1070
  }
1071
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1071
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1072
1072
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1073
1073
  }
1074
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1074
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1075
1075
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1076
1076
  }
1077
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1077
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1078
1078
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1079
1079
  }
1080
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1080
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1081
1081
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1082
1082
  }
1083
1083
  export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1084
1084
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1085
1085
  }
1086
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1086
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1087
1087
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1088
1088
  }
1089
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1089
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1090
1090
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1091
1091
  }
1092
1092
  //# sourceMappingURL=restclient.d.ts.map