@openremote/rest 1.4.0-snapshot.20250313165420 → 1.4.0-snapshot.20250314091541

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