@openremote/rest 1.4.0-snapshot.20250402143121 → 1.4.0-snapshot.20250404091810

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