@openremote/rest 1.4.0-snapshot.20250410145009 → 1.4.0-snapshot.20250415072745

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