@openremote/rest 1.7.0-snapshot.20250523093924 → 1.7.0-snapshot.20250527153909

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