@openremote/rest 1.12.0-snapshot.20251204103102 → 1.12.0-snapshot.20251209091752

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,137 +9,154 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class AlarmResourceClient<O> {
12
+ export declare class AgentResourceClient<O> {
13
13
  protected httpClient: HttpClient<O>;
14
14
  constructor(httpClient: HttpClient<O>);
15
15
  /**
16
- * HTTP POST /alarm
17
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
16
+ * HTTP GET /agent/assetDiscovery/{agentId}
17
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
18
18
  */
19
- createAlarm(alarm: Model.Alarm, queryParams?: {
20
- assetIds?: string[];
21
- }, options?: O): RestResponse<Model.SentAlarm>;
19
+ doProtocolAssetDiscovery(agentId: string, queryParams?: {
20
+ realm?: string;
21
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
22
22
  /**
23
- * HTTP GET /alarm
24
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
23
+ * HTTP POST /agent/assetImport/{agentId}
24
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
25
25
  */
26
- getAlarms(queryParams?: {
26
+ doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
27
27
  realm?: string;
28
- status?: Model.AlarmStatus;
29
- assetId?: string;
30
- assigneeId?: string;
31
- }, options?: O): RestResponse<Model.SentAlarm[]>;
28
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
32
29
  /**
33
- * HTTP DELETE /alarm
34
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
30
+ * HTTP GET /agent/instanceDiscovery/{agentType}
31
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
35
32
  */
36
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
33
+ doProtocolInstanceDiscovery(agentType: string, queryParams?: {
34
+ parentId?: string;
35
+ realm?: string;
36
+ }, options?: O): RestResponse<Model.Agent[]>;
37
+ }
38
+ export declare class RealmResourceClient<O> {
39
+ protected httpClient: HttpClient<O>;
40
+ constructor(httpClient: HttpClient<O>);
37
41
  /**
38
- * HTTP PUT /alarm/assets
39
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
42
+ * HTTP POST /realm
43
+ * Java method: org.openremote.model.security.RealmResource.create
40
44
  */
41
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
45
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
42
46
  /**
43
- * HTTP GET /alarm/{alarmId}
44
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
47
+ * HTTP GET /realm
48
+ * Java method: org.openremote.model.security.RealmResource.getAll
45
49
  */
46
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
50
+ getAll(options?: O): RestResponse<Model.Realm[]>;
47
51
  /**
48
- * HTTP DELETE /alarm/{alarmId}
49
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
52
+ * HTTP GET /realm/accessible
53
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
50
54
  */
51
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
55
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
52
56
  /**
53
- * HTTP PUT /alarm/{alarmId}
54
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
57
+ * HTTP DELETE /realm/{name}
58
+ * Java method: org.openremote.model.security.RealmResource.delete
55
59
  */
56
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
60
+ delete(name: string, options?: O): RestResponse<void>;
57
61
  /**
58
- * HTTP GET /alarm/{alarmId}/assets
59
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
62
+ * HTTP GET /realm/{name}
63
+ * Java method: org.openremote.model.security.RealmResource.get
60
64
  */
61
- getAssetLinks(alarmId: number, queryParams?: {
62
- realm?: string;
63
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
65
+ get(name: string, options?: O): RestResponse<Model.Realm>;
66
+ /**
67
+ * HTTP PUT /realm/{name}
68
+ * Java method: org.openremote.model.security.RealmResource.update
69
+ */
70
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
64
71
  }
65
- export declare class AssetModelResourceClient<O> {
72
+ export declare class FlowResourceClient<O> {
66
73
  protected httpClient: HttpClient<O>;
67
74
  constructor(httpClient: HttpClient<O>);
68
75
  /**
69
- * HTTP GET /model/assetDescriptors
70
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
76
+ * HTTP GET /flow
77
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
71
78
  */
72
- getAssetDescriptors(queryParams?: {
73
- parentId?: string;
74
- parentType?: string;
75
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
79
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
76
80
  /**
77
- * HTTP GET /model/assetInfo/{assetType}
78
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
81
+ * HTTP GET /flow/{name}
82
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
79
83
  */
80
- getAssetInfo(assetType: string, queryParams?: {
81
- parentId?: string;
82
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
84
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
83
85
  /**
84
- * HTTP GET /model/assetInfos
85
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
86
+ * HTTP GET /flow/{type}
87
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
86
88
  */
87
- getAssetInfos(queryParams?: {
88
- parentId?: string;
89
- parentType?: string;
90
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
89
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
90
+ }
91
+ export declare class GatewayClientResourceClient<O> {
92
+ protected httpClient: HttpClient<O>;
93
+ constructor(httpClient: HttpClient<O>);
91
94
  /**
92
- * HTTP GET /model/getValueDescriptorSchema
93
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
95
+ * HTTP DELETE /gateway/connection
96
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
94
97
  */
95
- getValueDescriptorSchema(queryParams?: {
96
- name?: string;
97
- hash?: string;
98
- }, options?: O): RestResponse<any>;
98
+ deleteConnections(queryParams?: {
99
+ realm?: string[];
100
+ }, options?: O): RestResponse<void>;
99
101
  /**
100
- * HTTP GET /model/metaItemDescriptors
101
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
102
+ * HTTP GET /gateway/connection
103
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
102
104
  */
103
- getMetaItemDescriptors(queryParams?: {
104
- parentId?: string;
105
- }, options?: O): RestResponse<{
106
- [index: string]: Model.MetaItemDescriptor;
107
- }>;
105
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
108
106
  /**
109
- * HTTP GET /model/valueDescriptors
110
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
107
+ * HTTP DELETE /gateway/connection/{realm}
108
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
111
109
  */
112
- getValueDescriptors(queryParams?: {
113
- parentId?: string;
114
- }, options?: O): RestResponse<{
115
- [index: string]: Model.ValueDescriptor;
116
- }>;
110
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
111
+ /**
112
+ * HTTP GET /gateway/connection/{realm}
113
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
114
+ */
115
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
116
+ /**
117
+ * HTTP PUT /gateway/connection/{realm}
118
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
119
+ */
120
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
121
+ /**
122
+ * HTTP GET /gateway/status/{realm}
123
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
124
+ */
125
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
117
126
  }
118
- export declare class AssetDatapointResourceClient<O> {
127
+ export declare class DashboardResourceClient<O> {
119
128
  protected httpClient: HttpClient<O>;
120
129
  constructor(httpClient: HttpClient<O>);
121
130
  /**
122
- * HTTP GET /asset/datapoint/export
123
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
131
+ * HTTP POST /dashboard
132
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
124
133
  */
125
- getDatapointExport(queryParams?: {
126
- attributeRefs?: string;
127
- fromTimestamp?: number;
128
- toTimestamp?: number;
129
- }, options?: O): RestResponse<any>;
134
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
130
135
  /**
131
- * HTTP GET /asset/datapoint/periods
132
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
136
+ * HTTP PUT /dashboard
137
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
133
138
  */
134
- getDatapointPeriod(queryParams?: {
135
- assetId?: string;
136
- attributeName?: string;
137
- }, options?: O): RestResponse<Model.DatapointPeriod>;
139
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
138
140
  /**
139
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
140
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
141
+ * HTTP GET /dashboard/all/{realm}
142
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
141
143
  */
142
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
144
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
145
+ /**
146
+ * HTTP POST /dashboard/query
147
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
148
+ */
149
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
150
+ /**
151
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
152
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
153
+ */
154
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
155
+ /**
156
+ * HTTP GET /dashboard/{realm}/{dashboardId}
157
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
158
+ */
159
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
143
160
  }
144
161
  export declare class SyslogResourceClient<O> {
145
162
  protected httpClient: HttpClient<O>;
@@ -173,93 +190,31 @@ export declare class SyslogResourceClient<O> {
173
190
  subCategory?: string[];
174
191
  }, options?: O): RestResponse<any>;
175
192
  }
176
- export declare class RealmResourceClient<O> {
177
- protected httpClient: HttpClient<O>;
178
- constructor(httpClient: HttpClient<O>);
179
- /**
180
- * HTTP POST /realm
181
- * Java method: org.openremote.model.security.RealmResource.create
182
- */
183
- create(realm: Model.Realm, options?: O): RestResponse<void>;
184
- /**
185
- * HTTP GET /realm
186
- * Java method: org.openremote.model.security.RealmResource.getAll
187
- */
188
- getAll(options?: O): RestResponse<Model.Realm[]>;
189
- /**
190
- * HTTP GET /realm/accessible
191
- * Java method: org.openremote.model.security.RealmResource.getAccessible
192
- */
193
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
194
- /**
195
- * HTTP DELETE /realm/{name}
196
- * Java method: org.openremote.model.security.RealmResource.delete
197
- */
198
- delete(name: string, options?: O): RestResponse<void>;
199
- /**
200
- * HTTP GET /realm/{name}
201
- * Java method: org.openremote.model.security.RealmResource.get
202
- */
203
- get(name: string, options?: O): RestResponse<Model.Realm>;
204
- /**
205
- * HTTP PUT /realm/{name}
206
- * Java method: org.openremote.model.security.RealmResource.update
207
- */
208
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
209
- }
210
- export declare class ConfigurationResourceClient<O> {
211
- protected httpClient: HttpClient<O>;
212
- constructor(httpClient: HttpClient<O>);
213
- /**
214
- * HTTP GET /configuration/manager
215
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
216
- */
217
- getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
218
- /**
219
- * HTTP PUT /configuration/manager
220
- * Java method: org.openremote.model.manager.ConfigurationResource.update
221
- */
222
- update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
223
- /**
224
- * HTTP POST /configuration/manager/file
225
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
226
- */
227
- fileUpload(fileInfo: Model.FileInfo, queryParams?: {
228
- path?: string;
229
- }, options?: O): RestResponse<string>;
230
- /**
231
- * HTTP GET /configuration/manager/image/{filename: .+}
232
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
233
- */
234
- getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
235
- }
236
- export declare class ConsoleResourceClient<O> {
237
- protected httpClient: HttpClient<O>;
238
- constructor(httpClient: HttpClient<O>);
239
- /**
240
- * HTTP POST /console/register
241
- * Java method: org.openremote.model.console.ConsoleResource.register
242
- */
243
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
244
- }
245
- export declare class FlowResourceClient<O> {
193
+ export declare class AssetDatapointResourceClient<O> {
246
194
  protected httpClient: HttpClient<O>;
247
195
  constructor(httpClient: HttpClient<O>);
248
196
  /**
249
- * HTTP GET /flow
250
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
197
+ * HTTP GET /asset/datapoint/export
198
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
251
199
  */
252
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
200
+ getDatapointExport(queryParams?: {
201
+ attributeRefs?: string;
202
+ fromTimestamp?: number;
203
+ toTimestamp?: number;
204
+ }, options?: O): RestResponse<any>;
253
205
  /**
254
- * HTTP GET /flow/{name}
255
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
206
+ * HTTP GET /asset/datapoint/periods
207
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
256
208
  */
257
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
209
+ getDatapointPeriod(queryParams?: {
210
+ assetId?: string;
211
+ attributeName?: string;
212
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
258
213
  /**
259
- * HTTP GET /flow/{type}
260
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
214
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
215
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
261
216
  */
262
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
217
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
263
218
  }
264
219
  export declare class RulesResourceClient<O> {
265
220
  protected httpClient: HttpClient<O>;
@@ -369,6 +324,124 @@ export declare class RulesResourceClient<O> {
369
324
  */
370
325
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
371
326
  }
327
+ export declare class ConsoleResourceClient<O> {
328
+ protected httpClient: HttpClient<O>;
329
+ constructor(httpClient: HttpClient<O>);
330
+ /**
331
+ * HTTP POST /console/register
332
+ * Java method: org.openremote.model.console.ConsoleResource.register
333
+ */
334
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
335
+ }
336
+ export declare class ConfigurationResourceClient<O> {
337
+ protected httpClient: HttpClient<O>;
338
+ constructor(httpClient: HttpClient<O>);
339
+ /**
340
+ * HTTP GET /configuration/manager
341
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
342
+ */
343
+ getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
344
+ /**
345
+ * HTTP PUT /configuration/manager
346
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
347
+ */
348
+ update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
349
+ /**
350
+ * HTTP POST /configuration/manager/file
351
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
352
+ */
353
+ fileUpload(fileInfo: Model.FileInfo, queryParams?: {
354
+ path?: string;
355
+ }, options?: O): RestResponse<string>;
356
+ /**
357
+ * HTTP GET /configuration/manager/image/{filename: .+}
358
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
359
+ */
360
+ getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
361
+ }
362
+ export declare class NotificationResourceClient<O> {
363
+ protected httpClient: HttpClient<O>;
364
+ constructor(httpClient: HttpClient<O>);
365
+ /**
366
+ * HTTP GET /notification
367
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
368
+ */
369
+ getNotifications(queryParams?: {
370
+ id?: number;
371
+ type?: string;
372
+ from?: number;
373
+ to?: number;
374
+ realmId?: string;
375
+ userId?: string;
376
+ assetId?: string;
377
+ }, options?: O): RestResponse<Model.SentNotification[]>;
378
+ /**
379
+ * HTTP DELETE /notification
380
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
381
+ */
382
+ removeNotifications(queryParams?: {
383
+ id?: number;
384
+ type?: string;
385
+ from?: number;
386
+ to?: number;
387
+ realmId?: string;
388
+ userId?: string;
389
+ assetId?: string;
390
+ }, options?: O): RestResponse<void>;
391
+ /**
392
+ * HTTP POST /notification/alert
393
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
394
+ */
395
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
396
+ /**
397
+ * HTTP DELETE /notification/{notificationId}
398
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
399
+ */
400
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
401
+ /**
402
+ * HTTP PUT /notification/{notificationId}/acknowledged
403
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
404
+ */
405
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
406
+ targetId?: string;
407
+ }, options?: O): RestResponse<void>;
408
+ /**
409
+ * HTTP PUT /notification/{notificationId}/delivered
410
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
411
+ */
412
+ notificationDelivered(notificationId: number, queryParams?: {
413
+ targetId?: string;
414
+ }, options?: O): RestResponse<void>;
415
+ }
416
+ export declare class GatewayServiceResourceClient<O> {
417
+ protected httpClient: HttpClient<O>;
418
+ constructor(httpClient: HttpClient<O>);
419
+ /**
420
+ * HTTP POST /gateway/tunnel
421
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
422
+ */
423
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
424
+ /**
425
+ * HTTP DELETE /gateway/tunnel
426
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
427
+ */
428
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
429
+ /**
430
+ * HTTP GET /gateway/tunnel/{realm}
431
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
432
+ */
433
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
434
+ /**
435
+ * HTTP GET /gateway/tunnel/{realm}/{id}
436
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
437
+ */
438
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
439
+ /**
440
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
441
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
442
+ */
443
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
444
+ }
372
445
  export declare class MapResourceClient<O> {
373
446
  protected httpClient: HttpClient<O>;
374
447
  constructor(httpClient: HttpClient<O>);
@@ -422,114 +495,82 @@ export declare class MapResourceClient<O> {
422
495
  [id: string]: unknown;
423
496
  }>;
424
497
  }
425
- export declare class AssetResourceClient<O> {
498
+ export declare class AssetModelResourceClient<O> {
426
499
  protected httpClient: HttpClient<O>;
427
500
  constructor(httpClient: HttpClient<O>);
428
501
  /**
429
- * HTTP POST /asset
430
- * Java method: org.openremote.model.asset.AssetResource.create
431
- */
432
- create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
433
- /**
434
- * HTTP DELETE /asset
435
- * Java method: org.openremote.model.asset.AssetResource.delete
436
- */
437
- delete(queryParams?: {
438
- assetId?: string[];
439
- }, options?: O): RestResponse<void>;
440
- /**
441
- * HTTP PUT /asset/attributes
442
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
443
- */
444
- writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
445
- /**
446
- * HTTP PUT /asset/attributes/timestamp
447
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
448
- */
449
- writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
450
- /**
451
- * HTTP DELETE /asset/parent
452
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
453
- */
454
- updateNoneParent(queryParams?: {
455
- assetIds?: string[];
456
- }, options?: O): RestResponse<void>;
457
- /**
458
- * HTTP GET /asset/partial/{assetId}
459
- * Java method: org.openremote.model.asset.AssetResource.getPartial
460
- */
461
- getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
462
- /**
463
- * HTTP POST /asset/query
464
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
465
- */
466
- queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
467
- /**
468
- * HTTP POST /asset/tree
469
- * Java method: org.openremote.model.asset.AssetResource.queryAssetTree
470
- */
471
- queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
472
- /**
473
- * HTTP GET /asset/user/current
474
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
475
- */
476
- getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
477
- /**
478
- * HTTP POST /asset/user/link
479
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
502
+ * HTTP GET /model/assetDescriptors
503
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
480
504
  */
481
- createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
505
+ getAssetDescriptors(queryParams?: {
506
+ parentId?: string;
507
+ parentType?: string;
508
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
482
509
  /**
483
- * HTTP GET /asset/user/link
484
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
510
+ * HTTP GET /model/assetInfo/{assetType}
511
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
485
512
  */
486
- getUserAssetLinks(queryParams?: {
487
- realm?: string;
488
- userId?: string;
489
- assetId?: string;
490
- }, options?: O): RestResponse<Model.UserAssetLink[]>;
513
+ getAssetInfo(assetType: string, queryParams?: {
514
+ parentId?: string;
515
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
491
516
  /**
492
- * HTTP POST /asset/user/link/delete
493
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
517
+ * HTTP GET /model/assetInfos
518
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
494
519
  */
495
- deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
520
+ getAssetInfos(queryParams?: {
521
+ parentId?: string;
522
+ parentType?: string;
523
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
496
524
  /**
497
- * HTTP DELETE /asset/user/link/{realm}/{userId}
498
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
525
+ * HTTP GET /model/getValueDescriptorSchema
526
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
499
527
  */
500
- deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
528
+ getValueDescriptorSchema(queryParams?: {
529
+ name?: string;
530
+ hash?: string;
531
+ }, options?: O): RestResponse<any>;
501
532
  /**
502
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
503
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
533
+ * HTTP GET /model/metaItemDescriptors
534
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
504
535
  */
505
- deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
536
+ getMetaItemDescriptors(queryParams?: {
537
+ parentId?: string;
538
+ }, options?: O): RestResponse<{
539
+ [index: string]: Model.MetaItemDescriptor;
540
+ }>;
506
541
  /**
507
- * HTTP GET /asset/{assetId}
508
- * Java method: org.openremote.model.asset.AssetResource.get
542
+ * HTTP GET /model/valueDescriptors
543
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
509
544
  */
510
- get(assetId: string, options?: O): RestResponse<Model.Asset>;
545
+ getValueDescriptors(queryParams?: {
546
+ parentId?: string;
547
+ }, options?: O): RestResponse<{
548
+ [index: string]: Model.ValueDescriptor;
549
+ }>;
550
+ }
551
+ export declare class ProvisioningResourceClient<O> {
552
+ protected httpClient: HttpClient<O>;
553
+ constructor(httpClient: HttpClient<O>);
511
554
  /**
512
- * HTTP PUT /asset/{assetId}
513
- * Java method: org.openremote.model.asset.AssetResource.update
555
+ * HTTP POST /provisioning
556
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
514
557
  */
515
- update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
558
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
516
559
  /**
517
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
518
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
560
+ * HTTP GET /provisioning
561
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
519
562
  */
520
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
563
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
521
564
  /**
522
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
523
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
565
+ * HTTP DELETE /provisioning/{id}
566
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
524
567
  */
525
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
568
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
526
569
  /**
527
- * HTTP PUT /asset/{parentAssetId}/child
528
- * Java method: org.openremote.model.asset.AssetResource.updateParent
570
+ * HTTP PUT /provisioning/{id}
571
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
529
572
  */
530
- updateParent(parentAssetId: string, queryParams?: {
531
- assetIds?: string[];
532
- }, options?: O): RestResponse<void>;
573
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
533
574
  }
534
575
  export declare class UserResourceClient<O> {
535
576
  protected httpClient: HttpClient<O>;
@@ -655,6 +696,25 @@ export declare class UserResourceClient<O> {
655
696
  */
656
697
  get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
657
698
  }
699
+ export declare class AppResourceClient<O> {
700
+ protected httpClient: HttpClient<O>;
701
+ constructor(httpClient: HttpClient<O>);
702
+ /**
703
+ * HTTP GET /apps
704
+ * Java method: org.openremote.model.apps.AppResource.getApps
705
+ */
706
+ getApps(options?: O): RestResponse<string[]>;
707
+ /**
708
+ * HTTP GET /apps/consoleConfig
709
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
710
+ */
711
+ getConsoleConfig(options?: O): RestResponse<any>;
712
+ /**
713
+ * HTTP GET /apps/info
714
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
715
+ */
716
+ getAppInfos(options?: O): RestResponse<any>;
717
+ }
658
718
  export declare class ExternalServiceResourceClient<O> {
659
719
  protected httpClient: HttpClient<O>;
660
720
  constructor(httpClient: HttpClient<O>);
@@ -710,307 +770,247 @@ export declare class ExternalServiceResourceClient<O> {
710
770
  */
711
771
  heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
712
772
  }
713
- export declare class AppResourceClient<O> {
714
- protected httpClient: HttpClient<O>;
715
- constructor(httpClient: HttpClient<O>);
716
- /**
717
- * HTTP GET /apps
718
- * Java method: org.openremote.model.apps.AppResource.getApps
719
- */
720
- getApps(options?: O): RestResponse<string[]>;
721
- /**
722
- * HTTP GET /apps/consoleConfig
723
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
724
- */
725
- getConsoleConfig(options?: O): RestResponse<any>;
726
- /**
727
- * HTTP GET /apps/info
728
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
729
- */
730
- getAppInfos(options?: O): RestResponse<any>;
731
- }
732
- export declare class GatewayServiceResourceClient<O> {
773
+ export declare class StatusResourceClient<O> {
733
774
  protected httpClient: HttpClient<O>;
734
775
  constructor(httpClient: HttpClient<O>);
735
776
  /**
736
- * HTTP POST /gateway/tunnel
737
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
738
- */
739
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
740
- /**
741
- * HTTP DELETE /gateway/tunnel
742
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
743
- */
744
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
745
- /**
746
- * HTTP GET /gateway/tunnel/{realm}
747
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
748
- */
749
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
750
- /**
751
- * HTTP GET /gateway/tunnel/{realm}/{id}
752
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
777
+ * HTTP GET /health
778
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
753
779
  */
754
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
780
+ getHealthStatus(options?: O): RestResponse<{
781
+ [index: string]: any;
782
+ }>;
755
783
  /**
756
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
757
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
784
+ * HTTP GET /info
785
+ * Java method: org.openremote.model.system.StatusResource.getInfo
758
786
  */
759
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
787
+ getInfo(options?: O): RestResponse<{
788
+ [index: string]: any;
789
+ }>;
760
790
  }
761
- export declare class ProvisioningResourceClient<O> {
791
+ export declare class AssetResourceClient<O> {
762
792
  protected httpClient: HttpClient<O>;
763
793
  constructor(httpClient: HttpClient<O>);
764
794
  /**
765
- * HTTP POST /provisioning
766
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
767
- */
768
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
769
- /**
770
- * HTTP GET /provisioning
771
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
795
+ * HTTP POST /asset
796
+ * Java method: org.openremote.model.asset.AssetResource.create
772
797
  */
773
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
798
+ create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
774
799
  /**
775
- * HTTP DELETE /provisioning/{id}
776
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
800
+ * HTTP DELETE /asset
801
+ * Java method: org.openremote.model.asset.AssetResource.delete
777
802
  */
778
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
803
+ delete(queryParams?: {
804
+ assetId?: string[];
805
+ }, options?: O): RestResponse<void>;
779
806
  /**
780
- * HTTP PUT /provisioning/{id}
781
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
807
+ * HTTP PUT /asset/attributes
808
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
782
809
  */
783
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
784
- }
785
- export declare class NotificationResourceClient<O> {
786
- protected httpClient: HttpClient<O>;
787
- constructor(httpClient: HttpClient<O>);
810
+ writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
788
811
  /**
789
- * HTTP GET /notification
790
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
812
+ * HTTP PUT /asset/attributes/timestamp
813
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
791
814
  */
792
- getNotifications(queryParams?: {
793
- id?: number;
794
- type?: string;
795
- from?: number;
796
- to?: number;
797
- realmId?: string;
798
- userId?: string;
799
- assetId?: string;
800
- }, options?: O): RestResponse<Model.SentNotification[]>;
815
+ writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
801
816
  /**
802
- * HTTP DELETE /notification
803
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
817
+ * HTTP DELETE /asset/parent
818
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
804
819
  */
805
- removeNotifications(queryParams?: {
806
- id?: number;
807
- type?: string;
808
- from?: number;
809
- to?: number;
810
- realmId?: string;
811
- userId?: string;
812
- assetId?: string;
820
+ updateNoneParent(queryParams?: {
821
+ assetIds?: string[];
813
822
  }, options?: O): RestResponse<void>;
814
823
  /**
815
- * HTTP POST /notification/alert
816
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
824
+ * HTTP GET /asset/partial/{assetId}
825
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
817
826
  */
818
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
827
+ getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
819
828
  /**
820
- * HTTP DELETE /notification/{notificationId}
821
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
829
+ * HTTP POST /asset/query
830
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
822
831
  */
823
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
832
+ queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
824
833
  /**
825
- * HTTP PUT /notification/{notificationId}/acknowledged
826
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
834
+ * HTTP POST /asset/tree
835
+ * Java method: org.openremote.model.asset.AssetResource.queryAssetTree
827
836
  */
828
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
829
- targetId?: string;
830
- }, options?: O): RestResponse<void>;
837
+ queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
831
838
  /**
832
- * HTTP PUT /notification/{notificationId}/delivered
833
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
839
+ * HTTP GET /asset/user/current
840
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
834
841
  */
835
- notificationDelivered(notificationId: number, queryParams?: {
836
- targetId?: string;
837
- }, options?: O): RestResponse<void>;
838
- }
839
- export declare class AssetPredictedDatapointResourceClient<O> {
840
- protected httpClient: HttpClient<O>;
841
- constructor(httpClient: HttpClient<O>);
842
+ getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
842
843
  /**
843
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
844
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
844
+ * HTTP POST /asset/user/link
845
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
845
846
  */
846
- getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
847
+ createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
847
848
  /**
848
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
849
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
849
+ * HTTP GET /asset/user/link
850
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
850
851
  */
851
- writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
852
- }
853
- export declare class StatusResourceClient<O> {
854
- protected httpClient: HttpClient<O>;
855
- constructor(httpClient: HttpClient<O>);
852
+ getUserAssetLinks(queryParams?: {
853
+ realm?: string;
854
+ userId?: string;
855
+ assetId?: string;
856
+ }, options?: O): RestResponse<Model.UserAssetLink[]>;
856
857
  /**
857
- * HTTP GET /health
858
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
858
+ * HTTP POST /asset/user/link/delete
859
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
859
860
  */
860
- getHealthStatus(options?: O): RestResponse<{
861
- [index: string]: any;
862
- }>;
861
+ deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
863
862
  /**
864
- * HTTP GET /info
865
- * Java method: org.openremote.model.system.StatusResource.getInfo
863
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
864
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
866
865
  */
867
- getInfo(options?: O): RestResponse<{
868
- [index: string]: any;
869
- }>;
870
- }
871
- export declare class GatewayClientResourceClient<O> {
872
- protected httpClient: HttpClient<O>;
873
- constructor(httpClient: HttpClient<O>);
866
+ deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
874
867
  /**
875
- * HTTP DELETE /gateway/connection
876
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
868
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
869
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
877
870
  */
878
- deleteConnections(queryParams?: {
879
- realm?: string[];
880
- }, options?: O): RestResponse<void>;
871
+ deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
881
872
  /**
882
- * HTTP GET /gateway/connection
883
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
873
+ * HTTP GET /asset/{assetId}
874
+ * Java method: org.openremote.model.asset.AssetResource.get
884
875
  */
885
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
876
+ get(assetId: string, options?: O): RestResponse<Model.Asset>;
886
877
  /**
887
- * HTTP DELETE /gateway/connection/{realm}
888
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
878
+ * HTTP PUT /asset/{assetId}
879
+ * Java method: org.openremote.model.asset.AssetResource.update
889
880
  */
890
- deleteConnection(realm: string, options?: O): RestResponse<void>;
881
+ update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
891
882
  /**
892
- * HTTP GET /gateway/connection/{realm}
893
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
883
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
884
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
894
885
  */
895
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
886
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
896
887
  /**
897
- * HTTP PUT /gateway/connection/{realm}
898
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
888
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
889
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
899
890
  */
900
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
891
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
901
892
  /**
902
- * HTTP GET /gateway/status/{realm}
903
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
893
+ * HTTP PUT /asset/{parentAssetId}/child
894
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
904
895
  */
905
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
896
+ updateParent(parentAssetId: string, queryParams?: {
897
+ assetIds?: string[];
898
+ }, options?: O): RestResponse<void>;
906
899
  }
907
- export declare class DashboardResourceClient<O> {
900
+ export declare class AlarmResourceClient<O> {
908
901
  protected httpClient: HttpClient<O>;
909
902
  constructor(httpClient: HttpClient<O>);
910
903
  /**
911
- * HTTP POST /dashboard
912
- * Java method: org.openremote.model.dashboard.DashboardResource.create
904
+ * HTTP POST /alarm
905
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
913
906
  */
914
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
907
+ createAlarm(alarm: Model.Alarm, queryParams?: {
908
+ assetIds?: string[];
909
+ }, options?: O): RestResponse<Model.SentAlarm>;
915
910
  /**
916
- * HTTP PUT /dashboard
917
- * Java method: org.openremote.model.dashboard.DashboardResource.update
911
+ * HTTP GET /alarm
912
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
918
913
  */
919
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
914
+ getAlarms(queryParams?: {
915
+ realm?: string;
916
+ status?: Model.AlarmStatus;
917
+ assetId?: string;
918
+ assigneeId?: string;
919
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
920
920
  /**
921
- * HTTP GET /dashboard/all/{realm}
922
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
921
+ * HTTP DELETE /alarm
922
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
923
923
  */
924
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
924
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
925
925
  /**
926
- * HTTP POST /dashboard/query
927
- * Java method: org.openremote.model.dashboard.DashboardResource.query
926
+ * HTTP PUT /alarm/assets
927
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
928
928
  */
929
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
929
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
930
930
  /**
931
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
932
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
931
+ * HTTP GET /alarm/{alarmId}
932
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
933
933
  */
934
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
934
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
935
935
  /**
936
- * HTTP GET /dashboard/{realm}/{dashboardId}
937
- * Java method: org.openremote.model.dashboard.DashboardResource.get
936
+ * HTTP DELETE /alarm/{alarmId}
937
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
938
938
  */
939
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
940
- }
941
- export declare class AgentResourceClient<O> {
942
- protected httpClient: HttpClient<O>;
943
- constructor(httpClient: HttpClient<O>);
939
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
944
940
  /**
945
- * HTTP GET /agent/assetDiscovery/{agentId}
946
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
941
+ * HTTP PUT /alarm/{alarmId}
942
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
947
943
  */
948
- doProtocolAssetDiscovery(agentId: string, queryParams?: {
949
- realm?: string;
950
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
944
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
951
945
  /**
952
- * HTTP POST /agent/assetImport/{agentId}
953
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
946
+ * HTTP GET /alarm/{alarmId}/assets
947
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
954
948
  */
955
- doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
949
+ getAssetLinks(alarmId: number, queryParams?: {
956
950
  realm?: string;
957
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
951
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
952
+ }
953
+ export declare class AssetPredictedDatapointResourceClient<O> {
954
+ protected httpClient: HttpClient<O>;
955
+ constructor(httpClient: HttpClient<O>);
958
956
  /**
959
- * HTTP GET /agent/instanceDiscovery/{agentType}
960
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
957
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
958
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
961
959
  */
962
- doProtocolInstanceDiscovery(agentType: string, queryParams?: {
963
- parentId?: string;
964
- realm?: string;
965
- }, options?: O): RestResponse<Model.Agent[]>;
960
+ getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
961
+ /**
962
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
963
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
964
+ */
965
+ writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
966
966
  }
967
967
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
968
968
  export declare class ApiClient {
969
- protected _alarmResource: AxiosAlarmResourceClient;
970
- protected _assetModelResource: AxiosAssetModelResourceClient;
971
- protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
972
- protected _syslogResource: AxiosSyslogResourceClient;
969
+ protected _agentResource: AxiosAgentResourceClient;
973
970
  protected _realmResource: AxiosRealmResourceClient;
974
- protected _configurationResource: AxiosConfigurationResourceClient;
975
- protected _consoleResource: AxiosConsoleResourceClient;
976
971
  protected _flowResource: AxiosFlowResourceClient;
972
+ protected _gatewayClientResource: AxiosGatewayClientResourceClient;
973
+ protected _dashboardResource: AxiosDashboardResourceClient;
974
+ protected _syslogResource: AxiosSyslogResourceClient;
975
+ protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
977
976
  protected _rulesResource: AxiosRulesResourceClient;
977
+ protected _consoleResource: AxiosConsoleResourceClient;
978
+ protected _configurationResource: AxiosConfigurationResourceClient;
979
+ protected _notificationResource: AxiosNotificationResourceClient;
980
+ protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
978
981
  protected _mapResource: AxiosMapResourceClient;
979
- protected _assetResource: AxiosAssetResourceClient;
982
+ protected _assetModelResource: AxiosAssetModelResourceClient;
983
+ protected _provisioningResource: AxiosProvisioningResourceClient;
980
984
  protected _userResource: AxiosUserResourceClient;
981
- protected _externalServiceResource: AxiosExternalServiceResourceClient;
982
985
  protected _appResource: AxiosAppResourceClient;
983
- protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
984
- protected _provisioningResource: AxiosProvisioningResourceClient;
985
- protected _notificationResource: AxiosNotificationResourceClient;
986
- protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
986
+ protected _externalServiceResource: AxiosExternalServiceResourceClient;
987
987
  protected _statusResource: AxiosStatusResourceClient;
988
- protected _gatewayClientResource: AxiosGatewayClientResourceClient;
989
- protected _dashboardResource: AxiosDashboardResourceClient;
990
- protected _agentResource: AxiosAgentResourceClient;
988
+ protected _assetResource: AxiosAssetResourceClient;
989
+ protected _alarmResource: AxiosAlarmResourceClient;
990
+ protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
991
991
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
992
- get AlarmResource(): AxiosAlarmResourceClient;
993
- get AssetModelResource(): AxiosAssetModelResourceClient;
994
- get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
995
- get SyslogResource(): AxiosSyslogResourceClient;
992
+ get AgentResource(): AxiosAgentResourceClient;
996
993
  get RealmResource(): AxiosRealmResourceClient;
997
- get ConfigurationResource(): AxiosConfigurationResourceClient;
998
- get ConsoleResource(): AxiosConsoleResourceClient;
999
994
  get FlowResource(): AxiosFlowResourceClient;
995
+ get GatewayClientResource(): AxiosGatewayClientResourceClient;
996
+ get DashboardResource(): AxiosDashboardResourceClient;
997
+ get SyslogResource(): AxiosSyslogResourceClient;
998
+ get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
1000
999
  get RulesResource(): AxiosRulesResourceClient;
1000
+ get ConsoleResource(): AxiosConsoleResourceClient;
1001
+ get ConfigurationResource(): AxiosConfigurationResourceClient;
1002
+ get NotificationResource(): AxiosNotificationResourceClient;
1003
+ get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1001
1004
  get MapResource(): AxiosMapResourceClient;
1002
- get AssetResource(): AxiosAssetResourceClient;
1005
+ get AssetModelResource(): AxiosAssetModelResourceClient;
1006
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
1003
1007
  get UserResource(): AxiosUserResourceClient;
1004
- get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1005
1008
  get AppResource(): AxiosAppResourceClient;
1006
- get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1007
- get ProvisioningResource(): AxiosProvisioningResourceClient;
1008
- get NotificationResource(): AxiosNotificationResourceClient;
1009
- get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
1009
+ get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1010
1010
  get StatusResource(): AxiosStatusResourceClient;
1011
- get GatewayClientResource(): AxiosGatewayClientResourceClient;
1012
- get DashboardResource(): AxiosDashboardResourceClient;
1013
- get AgentResource(): AxiosAgentResourceClient;
1011
+ get AssetResource(): AxiosAssetResourceClient;
1012
+ get AlarmResource(): AxiosAlarmResourceClient;
1013
+ get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
1014
1014
  }
1015
1015
  import * as Axios from "axios";
1016
1016
  declare module "axios" {
@@ -1018,69 +1018,69 @@ declare module "axios" {
1018
1018
  data: R;
1019
1019
  }
1020
1020
  }
1021
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1022
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1023
- }
1024
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1021
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1025
1022
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1026
1023
  }
1027
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1024
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1028
1025
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1029
1026
  }
1030
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1027
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1031
1028
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1032
1029
  }
1033
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1030
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1034
1031
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1035
1032
  }
1036
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1033
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1037
1034
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1038
1035
  }
1039
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1036
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1040
1037
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1041
1038
  }
1042
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1039
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1043
1040
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1044
1041
  }
1045
1042
  export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1046
1043
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1047
1044
  }
1048
- export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1045
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1049
1046
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1050
1047
  }
1051
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1048
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1052
1049
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1053
1050
  }
1054
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1051
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1055
1052
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1056
1053
  }
1057
- export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1054
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1058
1055
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1059
1056
  }
1060
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1057
+ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1061
1058
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1062
1059
  }
1063
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1060
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1064
1061
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1065
1062
  }
1066
1063
  export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1067
1064
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1068
1065
  }
1069
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1066
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1070
1067
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1071
1068
  }
1072
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1069
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1070
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1071
+ }
1072
+ export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1073
1073
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1074
1074
  }
1075
1075
  export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1076
1076
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1077
1077
  }
1078
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1078
+ export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1079
1079
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1080
1080
  }
1081
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1081
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1082
1082
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1083
1083
  }
1084
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1084
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1085
1085
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1086
1086
  }