@openremote/rest 1.6.0-snapshot.20250514095754 → 1.6.0-snapshot.20250516084211

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