@openremote/rest 1.7.0-snapshot.20250704092907 → 1.7.0-snapshot.20250704123426

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