@openremote/rest 1.3.0-snapshot.20250130102555 → 1.3.0-snapshot.20250203093754

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