@openremote/rest 1.8.0-snapshot.20250725120001 → 1.8.0-snapshot.20250725123024

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