@openremote/rest 1.9.0-snapshot.20250910131051 → 1.9.0-snapshot.20250910134401

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