@openremote/rest 1.9.0-snapshot.20250915151349 → 1.9.0-snapshot.20250917074345

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