@openremote/rest 1.9.0-snapshot.20250828102241 → 1.9.0-snapshot.20250828120203

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