@openremote/rest 1.13.0 → 1.14.0-snapshot.20260112164255

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.
@@ -94,152 +94,129 @@ export declare class MapResourceClient<O> {
94
94
  [id: string]: unknown;
95
95
  }>;
96
96
  }
97
- export declare class StatusResourceClient<O> {
97
+ export declare class ConsoleResourceClient<O> {
98
98
  protected httpClient: HttpClient<O>;
99
99
  constructor(httpClient: HttpClient<O>);
100
100
  /**
101
- * HTTP GET /health
102
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
103
- */
104
- getHealthStatus(options?: O): RestResponse<{
105
- [index: string]: any;
106
- }>;
107
- /**
108
- * HTTP GET /info
109
- * Java method: org.openremote.model.system.StatusResource.getInfo
101
+ * HTTP POST /console/register
102
+ * Java method: org.openremote.model.console.ConsoleResource.register
110
103
  */
111
- getInfo(options?: O): RestResponse<{
112
- [index: string]: any;
113
- }>;
104
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
114
105
  }
115
- export declare class ConfigurationResourceClient<O> {
106
+ export declare class ExternalServiceResourceClient<O> {
116
107
  protected httpClient: HttpClient<O>;
117
108
  constructor(httpClient: HttpClient<O>);
118
109
  /**
119
- * HTTP GET /configuration/manager
120
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
121
- */
122
- getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
123
- /**
124
- * HTTP PUT /configuration/manager
125
- * Java method: org.openremote.model.manager.ConfigurationResource.update
126
- */
127
- update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
128
- /**
129
- * HTTP POST /configuration/manager/file
130
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
131
- */
132
- fileUpload(fileInfo: Model.FileInfo, queryParams?: {
133
- path?: string;
134
- }, options?: O): RestResponse<string>;
135
- /**
136
- * HTTP GET /configuration/manager/image/{filename: .+}
137
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
110
+ * Response code 200 - List of registered external services
111
+ * HTTP GET /service
112
+ * Java method: org.openremote.model.services.ExternalServiceResource.getServices
138
113
  */
139
- getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
140
- }
141
- export declare class GatewayClientResourceClient<O> {
142
- protected httpClient: HttpClient<O>;
143
- constructor(httpClient: HttpClient<O>);
114
+ getServices(queryParams?: {
115
+ realm?: string;
116
+ }, options?: O): RestResponse<Model.ExternalService[]>;
144
117
  /**
145
- * HTTP DELETE /gateway/connection
146
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
118
+ * Response code 200 - Service registered successfully
119
+ * Response code 400 - Invalid external service object
120
+ * Response code 409 - ExternalService instance already registered
121
+ * HTTP POST /service
122
+ * Java method: org.openremote.model.services.ExternalServiceResource.registerService
147
123
  */
148
- deleteConnections(queryParams?: {
149
- realm?: string[];
150
- }, options?: O): RestResponse<void>;
124
+ registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
151
125
  /**
152
- * HTTP GET /gateway/connection
153
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
126
+ * Response code 200 - List of registered external services
127
+ * HTTP GET /service/global
128
+ * Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
154
129
  */
155
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
130
+ getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
156
131
  /**
157
- * HTTP DELETE /gateway/connection/{realm}
158
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
132
+ * Response code 200 - Service registered successfully
133
+ * Response code 400 - Invalid external service object
134
+ * Response code 409 - ExternalService instance already registered
135
+ * HTTP POST /service/global
136
+ * Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
159
137
  */
160
- deleteConnection(realm: string, options?: O): RestResponse<void>;
138
+ registerGlobalService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
161
139
  /**
162
- * HTTP GET /gateway/connection/{realm}
163
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
140
+ * Response code 204 - Service deregistered successfully
141
+ * Response code 404 - Service instance not found
142
+ * HTTP DELETE /service/{serviceId}/{instanceId}
143
+ * Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
164
144
  */
165
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
145
+ deregisterService(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
166
146
  /**
167
- * HTTP PUT /gateway/connection/{realm}
168
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
147
+ * Response code 200 - ExternalService retrieved successfully
148
+ * Response code 404 - ExternalService not found
149
+ * HTTP GET /service/{serviceId}/{instanceId}
150
+ * Java method: org.openremote.model.services.ExternalServiceResource.getService
169
151
  */
170
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
152
+ getService(serviceId: string, instanceId: number, options?: O): RestResponse<Model.ExternalService>;
171
153
  /**
172
- * HTTP GET /gateway/status/{realm}
173
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
154
+ * Response code 204 - Heartbeat sent successfully
155
+ * Response code 404 - Service instance not found
156
+ * HTTP PUT /service/{serviceId}/{instanceId}
157
+ * Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
174
158
  */
175
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
159
+ heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
176
160
  }
177
- export declare class AssetPredictedDatapointResourceClient<O> {
161
+ export declare class DashboardResourceClient<O> {
178
162
  protected httpClient: HttpClient<O>;
179
163
  constructor(httpClient: HttpClient<O>);
180
164
  /**
181
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
182
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
165
+ * HTTP POST /dashboard
166
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
183
167
  */
184
- getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
168
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
185
169
  /**
186
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
187
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
170
+ * HTTP PUT /dashboard
171
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
188
172
  */
189
- writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
190
- }
191
- export declare class AlarmResourceClient<O> {
192
- protected httpClient: HttpClient<O>;
193
- constructor(httpClient: HttpClient<O>);
173
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
194
174
  /**
195
- * HTTP POST /alarm
196
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
175
+ * HTTP GET /dashboard/all/{realm}
176
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
197
177
  */
198
- createAlarm(alarm: Model.Alarm, queryParams?: {
199
- assetIds?: string[];
200
- }, options?: O): RestResponse<Model.SentAlarm>;
178
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
201
179
  /**
202
- * HTTP GET /alarm
203
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
180
+ * HTTP POST /dashboard/query
181
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
204
182
  */
205
- getAlarms(queryParams?: {
206
- realm?: string;
207
- status?: Model.AlarmStatus;
208
- assetId?: string;
209
- assigneeId?: string;
210
- }, options?: O): RestResponse<Model.SentAlarm[]>;
183
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
211
184
  /**
212
- * HTTP DELETE /alarm
213
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
185
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
186
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
214
187
  */
215
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
188
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
216
189
  /**
217
- * HTTP PUT /alarm/assets
218
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
190
+ * HTTP GET /dashboard/{realm}/{dashboardId}
191
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
219
192
  */
220
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
193
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
194
+ }
195
+ export declare class ConfigurationResourceClient<O> {
196
+ protected httpClient: HttpClient<O>;
197
+ constructor(httpClient: HttpClient<O>);
221
198
  /**
222
- * HTTP GET /alarm/{alarmId}
223
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
199
+ * HTTP GET /configuration/manager
200
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
224
201
  */
225
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
202
+ getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
226
203
  /**
227
- * HTTP DELETE /alarm/{alarmId}
228
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
204
+ * HTTP PUT /configuration/manager
205
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
229
206
  */
230
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
207
+ update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
231
208
  /**
232
- * HTTP PUT /alarm/{alarmId}
233
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
209
+ * HTTP POST /configuration/manager/file
210
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
234
211
  */
235
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
212
+ fileUpload(fileInfo: Model.FileInfo, queryParams?: {
213
+ path?: string;
214
+ }, options?: O): RestResponse<string>;
236
215
  /**
237
- * HTTP GET /alarm/{alarmId}/assets
238
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
216
+ * HTTP GET /configuration/manager/image/{filename: .+}
217
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
239
218
  */
240
- getAssetLinks(alarmId: number, queryParams?: {
241
- realm?: string;
242
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
219
+ getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
243
220
  }
244
221
  export declare class RulesResourceClient<O> {
245
222
  protected httpClient: HttpClient<O>;
@@ -349,221 +326,358 @@ export declare class RulesResourceClient<O> {
349
326
  */
350
327
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
351
328
  }
352
- export declare class NotificationResourceClient<O> {
329
+ export declare class GatewayServiceResourceClient<O> {
353
330
  protected httpClient: HttpClient<O>;
354
331
  constructor(httpClient: HttpClient<O>);
355
332
  /**
356
- * HTTP GET /notification
357
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
358
- */
359
- getNotifications(queryParams?: {
360
- id?: number;
361
- type?: string;
362
- from?: number;
363
- to?: number;
364
- realmId?: string;
365
- userId?: string;
366
- assetId?: string;
367
- }, options?: O): RestResponse<Model.SentNotification[]>;
368
- /**
369
- * HTTP DELETE /notification
370
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
333
+ * HTTP POST /gateway/tunnel
334
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
371
335
  */
372
- removeNotifications(queryParams?: {
373
- id?: number;
374
- type?: string;
375
- from?: number;
376
- to?: number;
377
- realmId?: string;
378
- userId?: string;
379
- assetId?: string;
380
- }, options?: O): RestResponse<void>;
336
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
381
337
  /**
382
- * HTTP POST /notification/alert
383
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
338
+ * HTTP DELETE /gateway/tunnel
339
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
384
340
  */
385
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
341
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
386
342
  /**
387
- * HTTP DELETE /notification/{notificationId}
388
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
343
+ * HTTP GET /gateway/tunnel/{realm}
344
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
389
345
  */
390
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
346
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
391
347
  /**
392
- * HTTP PUT /notification/{notificationId}/acknowledged
393
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
348
+ * HTTP GET /gateway/tunnel/{realm}/{id}
349
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
394
350
  */
395
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
396
- targetId?: string;
397
- }, options?: O): RestResponse<void>;
351
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
398
352
  /**
399
- * HTTP PUT /notification/{notificationId}/delivered
400
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
353
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
354
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
401
355
  */
402
- notificationDelivered(notificationId: number, queryParams?: {
403
- targetId?: string;
404
- }, options?: O): RestResponse<void>;
356
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
405
357
  }
406
- export declare class AssetResourceClient<O> {
358
+ export declare class AlarmResourceClient<O> {
407
359
  protected httpClient: HttpClient<O>;
408
360
  constructor(httpClient: HttpClient<O>);
409
361
  /**
410
- * HTTP POST /asset
411
- * Java method: org.openremote.model.asset.AssetResource.create
362
+ * HTTP POST /alarm
363
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
412
364
  */
413
- create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
365
+ createAlarm(alarm: Model.Alarm, queryParams?: {
366
+ assetIds?: string[];
367
+ }, options?: O): RestResponse<Model.SentAlarm>;
414
368
  /**
415
- * HTTP DELETE /asset
416
- * Java method: org.openremote.model.asset.AssetResource.delete
369
+ * HTTP GET /alarm
370
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
417
371
  */
418
- delete(queryParams?: {
419
- assetId?: string[];
420
- }, options?: O): RestResponse<void>;
421
- /**
422
- * HTTP PUT /asset/attributes
423
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
372
+ getAlarms(queryParams?: {
373
+ realm?: string;
374
+ status?: Model.AlarmStatus;
375
+ assetId?: string;
376
+ assigneeId?: string;
377
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
378
+ /**
379
+ * HTTP DELETE /alarm
380
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
424
381
  */
425
- writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
382
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
426
383
  /**
427
- * HTTP PUT /asset/attributes/timestamp
428
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
384
+ * HTTP PUT /alarm/assets
385
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
429
386
  */
430
- writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
387
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
431
388
  /**
432
- * HTTP POST /asset/count
433
- * Java method: org.openremote.model.asset.AssetResource.queryCount
389
+ * HTTP GET /alarm/{alarmId}
390
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
434
391
  */
435
- queryCount(query: Model.AssetQuery, options?: O): RestResponse<number>;
392
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
436
393
  /**
437
- * HTTP DELETE /asset/parent
438
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
394
+ * HTTP DELETE /alarm/{alarmId}
395
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
439
396
  */
440
- updateNoneParent(queryParams?: {
441
- assetIds?: string[];
397
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
398
+ /**
399
+ * HTTP PUT /alarm/{alarmId}
400
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
401
+ */
402
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
403
+ /**
404
+ * HTTP GET /alarm/{alarmId}/assets
405
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
406
+ */
407
+ getAssetLinks(alarmId: number, queryParams?: {
408
+ realm?: string;
409
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
410
+ }
411
+ export declare class GatewayClientResourceClient<O> {
412
+ protected httpClient: HttpClient<O>;
413
+ constructor(httpClient: HttpClient<O>);
414
+ /**
415
+ * HTTP DELETE /gateway/connection
416
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
417
+ */
418
+ deleteConnections(queryParams?: {
419
+ realm?: string[];
442
420
  }, options?: O): RestResponse<void>;
443
421
  /**
444
- * HTTP GET /asset/partial/{assetId}
445
- * Java method: org.openremote.model.asset.AssetResource.getPartial
422
+ * HTTP GET /gateway/connection
423
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
446
424
  */
447
- getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
425
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
448
426
  /**
449
- * HTTP POST /asset/query
450
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
427
+ * HTTP DELETE /gateway/connection/{realm}
428
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
451
429
  */
452
- queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
430
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
453
431
  /**
454
- * HTTP POST /asset/tree
455
- * Java method: org.openremote.model.asset.AssetResource.queryAssetTree
432
+ * HTTP GET /gateway/connection/{realm}
433
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
456
434
  */
457
- queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
435
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
458
436
  /**
459
- * HTTP GET /asset/user/current
460
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
437
+ * HTTP PUT /gateway/connection/{realm}
438
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
461
439
  */
462
- getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
440
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
463
441
  /**
464
- * HTTP POST /asset/user/link
465
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
442
+ * HTTP GET /gateway/status/{realm}
443
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
466
444
  */
467
- createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
445
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
446
+ }
447
+ export declare class AgentResourceClient<O> {
448
+ protected httpClient: HttpClient<O>;
449
+ constructor(httpClient: HttpClient<O>);
468
450
  /**
469
- * HTTP GET /asset/user/link
470
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
451
+ * HTTP GET /agent/assetDiscovery/{agentId}
452
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
471
453
  */
472
- getUserAssetLinks(queryParams?: {
454
+ doProtocolAssetDiscovery(agentId: string, queryParams?: {
473
455
  realm?: string;
474
- userId?: string;
456
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
457
+ /**
458
+ * HTTP POST /agent/assetImport/{agentId}
459
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
460
+ */
461
+ doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
462
+ realm?: string;
463
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
464
+ /**
465
+ * HTTP GET /agent/instanceDiscovery/{agentType}
466
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
467
+ */
468
+ doProtocolInstanceDiscovery(agentType: string, queryParams?: {
469
+ parentId?: string;
470
+ realm?: string;
471
+ }, options?: O): RestResponse<Model.Agent[]>;
472
+ }
473
+ export declare class AssetDatapointResourceClient<O> {
474
+ protected httpClient: HttpClient<O>;
475
+ constructor(httpClient: HttpClient<O>);
476
+ /**
477
+ * HTTP GET /asset/datapoint/export
478
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
479
+ */
480
+ getDatapointExport(queryParams?: {
481
+ attributeRefs?: string;
482
+ fromTimestamp?: number;
483
+ toTimestamp?: number;
484
+ }, options?: O): RestResponse<any>;
485
+ /**
486
+ * HTTP GET /asset/datapoint/periods
487
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
488
+ */
489
+ getDatapointPeriod(queryParams?: {
475
490
  assetId?: string;
476
- }, options?: O): RestResponse<Model.UserAssetLink[]>;
491
+ attributeName?: string;
492
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
477
493
  /**
478
- * HTTP POST /asset/user/link/delete
479
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
494
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
495
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
480
496
  */
481
- deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
497
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
498
+ }
499
+ export declare class StatusResourceClient<O> {
500
+ protected httpClient: HttpClient<O>;
501
+ constructor(httpClient: HttpClient<O>);
482
502
  /**
483
- * HTTP DELETE /asset/user/link/{realm}/{userId}
484
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
503
+ * HTTP GET /health
504
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
485
505
  */
486
- deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
506
+ getHealthStatus(options?: O): RestResponse<{
507
+ [index: string]: any;
508
+ }>;
487
509
  /**
488
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
489
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
510
+ * HTTP GET /info
511
+ * Java method: org.openremote.model.system.StatusResource.getInfo
490
512
  */
491
- deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
513
+ getInfo(options?: O): RestResponse<{
514
+ [index: string]: any;
515
+ }>;
516
+ }
517
+ export declare class RealmResourceClient<O> {
518
+ protected httpClient: HttpClient<O>;
519
+ constructor(httpClient: HttpClient<O>);
492
520
  /**
493
- * HTTP GET /asset/{assetId}
494
- * Java method: org.openremote.model.asset.AssetResource.get
521
+ * HTTP POST /realm
522
+ * Java method: org.openremote.model.security.RealmResource.create
495
523
  */
496
- get(assetId: string, options?: O): RestResponse<Model.Asset>;
524
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
497
525
  /**
498
- * HTTP PUT /asset/{assetId}
499
- * Java method: org.openremote.model.asset.AssetResource.update
526
+ * HTTP GET /realm
527
+ * Java method: org.openremote.model.security.RealmResource.getAll
500
528
  */
501
- update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
529
+ getAll(options?: O): RestResponse<Model.Realm[]>;
502
530
  /**
503
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
504
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
531
+ * HTTP GET /realm/accessible
532
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
505
533
  */
506
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
534
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
507
535
  /**
508
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
509
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
536
+ * HTTP DELETE /realm/{name}
537
+ * Java method: org.openremote.model.security.RealmResource.delete
510
538
  */
511
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
539
+ delete(name: string, options?: O): RestResponse<void>;
512
540
  /**
513
- * HTTP PUT /asset/{parentAssetId}/child
514
- * Java method: org.openremote.model.asset.AssetResource.updateParent
541
+ * HTTP GET /realm/{name}
542
+ * Java method: org.openremote.model.security.RealmResource.get
515
543
  */
516
- updateParent(parentAssetId: string, queryParams?: {
517
- assetIds?: string[];
518
- }, options?: O): RestResponse<void>;
544
+ get(name: string, options?: O): RestResponse<Model.Realm>;
545
+ /**
546
+ * HTTP PUT /realm/{name}
547
+ * Java method: org.openremote.model.security.RealmResource.update
548
+ */
549
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
519
550
  }
520
- export declare class FlowResourceClient<O> {
551
+ export declare class ProvisioningResourceClient<O> {
521
552
  protected httpClient: HttpClient<O>;
522
553
  constructor(httpClient: HttpClient<O>);
523
554
  /**
524
- * HTTP GET /flow
525
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
555
+ * HTTP POST /provisioning
556
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
526
557
  */
527
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
558
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
528
559
  /**
529
- * HTTP GET /flow/{name}
530
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
560
+ * HTTP GET /provisioning
561
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
531
562
  */
532
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
563
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
533
564
  /**
534
- * HTTP GET /flow/{type}
535
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
565
+ * HTTP DELETE /provisioning/{id}
566
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
536
567
  */
537
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
568
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
569
+ /**
570
+ * HTTP PUT /provisioning/{id}
571
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
572
+ */
573
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
538
574
  }
539
- export declare class GatewayServiceResourceClient<O> {
575
+ export declare class NotificationResourceClient<O> {
540
576
  protected httpClient: HttpClient<O>;
541
577
  constructor(httpClient: HttpClient<O>);
542
578
  /**
543
- * HTTP POST /gateway/tunnel
544
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
579
+ * HTTP GET /notification
580
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
545
581
  */
546
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
582
+ getNotifications(queryParams?: {
583
+ id?: number;
584
+ type?: string;
585
+ from?: number;
586
+ to?: number;
587
+ realmId?: string;
588
+ userId?: string;
589
+ assetId?: string;
590
+ }, options?: O): RestResponse<Model.SentNotification[]>;
547
591
  /**
548
- * HTTP DELETE /gateway/tunnel
549
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
592
+ * HTTP DELETE /notification
593
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
550
594
  */
551
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
595
+ removeNotifications(queryParams?: {
596
+ id?: number;
597
+ type?: string;
598
+ from?: number;
599
+ to?: number;
600
+ realmId?: string;
601
+ userId?: string;
602
+ assetId?: string;
603
+ }, options?: O): RestResponse<void>;
552
604
  /**
553
- * HTTP GET /gateway/tunnel/{realm}
554
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
605
+ * HTTP POST /notification/alert
606
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
555
607
  */
556
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
608
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
557
609
  /**
558
- * HTTP GET /gateway/tunnel/{realm}/{id}
559
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
610
+ * HTTP DELETE /notification/{notificationId}
611
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
560
612
  */
561
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
613
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
562
614
  /**
563
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
564
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
615
+ * HTTP PUT /notification/{notificationId}/acknowledged
616
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
565
617
  */
566
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
618
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
619
+ targetId?: string;
620
+ }, options?: O): RestResponse<void>;
621
+ /**
622
+ * HTTP PUT /notification/{notificationId}/delivered
623
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
624
+ */
625
+ notificationDelivered(notificationId: number, queryParams?: {
626
+ targetId?: string;
627
+ }, options?: O): RestResponse<void>;
628
+ }
629
+ export declare class AssetModelResourceClient<O> {
630
+ protected httpClient: HttpClient<O>;
631
+ constructor(httpClient: HttpClient<O>);
632
+ /**
633
+ * HTTP GET /model/assetDescriptors
634
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
635
+ */
636
+ getAssetDescriptors(queryParams?: {
637
+ parentId?: string;
638
+ parentType?: string;
639
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
640
+ /**
641
+ * HTTP GET /model/assetInfo/{assetType}
642
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
643
+ */
644
+ getAssetInfo(assetType: string, queryParams?: {
645
+ parentId?: string;
646
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
647
+ /**
648
+ * HTTP GET /model/assetInfos
649
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
650
+ */
651
+ getAssetInfos(queryParams?: {
652
+ parentId?: string;
653
+ parentType?: string;
654
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
655
+ /**
656
+ * HTTP GET /model/getValueDescriptorSchema
657
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
658
+ */
659
+ getValueDescriptorSchema(queryParams?: {
660
+ name?: string;
661
+ hash?: string;
662
+ }, options?: O): RestResponse<any>;
663
+ /**
664
+ * HTTP GET /model/metaItemDescriptors
665
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
666
+ */
667
+ getMetaItemDescriptors(queryParams?: {
668
+ parentId?: string;
669
+ }, options?: O): RestResponse<{
670
+ [index: string]: Model.MetaItemDescriptor;
671
+ }>;
672
+ /**
673
+ * HTTP GET /model/valueDescriptors
674
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
675
+ */
676
+ getValueDescriptors(queryParams?: {
677
+ parentId?: string;
678
+ }, options?: O): RestResponse<{
679
+ [index: string]: Model.ValueDescriptor;
680
+ }>;
567
681
  }
568
682
  export declare class UserResourceClient<O> {
569
683
  protected httpClient: HttpClient<O>;
@@ -689,55 +803,19 @@ export declare class UserResourceClient<O> {
689
803
  */
690
804
  get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
691
805
  }
692
- export declare class ProvisioningResourceClient<O> {
693
- protected httpClient: HttpClient<O>;
694
- constructor(httpClient: HttpClient<O>);
695
- /**
696
- * HTTP POST /provisioning
697
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
698
- */
699
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
700
- /**
701
- * HTTP GET /provisioning
702
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
703
- */
704
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
705
- /**
706
- * HTTP DELETE /provisioning/{id}
707
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
708
- */
709
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
710
- /**
711
- * HTTP PUT /provisioning/{id}
712
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
713
- */
714
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
715
- }
716
- export declare class AssetDatapointResourceClient<O> {
806
+ export declare class AssetPredictedDatapointResourceClient<O> {
717
807
  protected httpClient: HttpClient<O>;
718
808
  constructor(httpClient: HttpClient<O>);
719
809
  /**
720
- * HTTP GET /asset/datapoint/export
721
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
722
- */
723
- getDatapointExport(queryParams?: {
724
- attributeRefs?: string;
725
- fromTimestamp?: number;
726
- toTimestamp?: number;
727
- }, options?: O): RestResponse<any>;
728
- /**
729
- * HTTP GET /asset/datapoint/periods
730
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
810
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
811
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
731
812
  */
732
- getDatapointPeriod(queryParams?: {
733
- assetId?: string;
734
- attributeName?: string;
735
- }, options?: O): RestResponse<Model.DatapointPeriod>;
813
+ getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
736
814
  /**
737
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
738
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
815
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
816
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
739
817
  */
740
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
818
+ writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
741
819
  }
742
820
  export declare class AppResourceClient<O> {
743
821
  protected httpClient: HttpClient<O>;
@@ -758,264 +836,186 @@ export declare class AppResourceClient<O> {
758
836
  */
759
837
  getAppInfos(options?: O): RestResponse<any>;
760
838
  }
761
- export declare class DashboardResourceClient<O> {
839
+ export declare class FlowResourceClient<O> {
762
840
  protected httpClient: HttpClient<O>;
763
841
  constructor(httpClient: HttpClient<O>);
764
842
  /**
765
- * HTTP POST /dashboard
766
- * Java method: org.openremote.model.dashboard.DashboardResource.create
767
- */
768
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
769
- /**
770
- * HTTP PUT /dashboard
771
- * Java method: org.openremote.model.dashboard.DashboardResource.update
772
- */
773
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
774
- /**
775
- * HTTP GET /dashboard/all/{realm}
776
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
777
- */
778
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
779
- /**
780
- * HTTP POST /dashboard/query
781
- * Java method: org.openremote.model.dashboard.DashboardResource.query
843
+ * HTTP GET /flow
844
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
782
845
  */
783
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
846
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
784
847
  /**
785
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
786
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
848
+ * HTTP GET /flow/{name}
849
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
787
850
  */
788
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
851
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
789
852
  /**
790
- * HTTP GET /dashboard/{realm}/{dashboardId}
791
- * Java method: org.openremote.model.dashboard.DashboardResource.get
853
+ * HTTP GET /flow/{type}
854
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
792
855
  */
793
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
856
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
794
857
  }
795
- export declare class AssetModelResourceClient<O> {
858
+ export declare class AssetResourceClient<O> {
796
859
  protected httpClient: HttpClient<O>;
797
860
  constructor(httpClient: HttpClient<O>);
798
861
  /**
799
- * HTTP GET /model/assetDescriptors
800
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
801
- */
802
- getAssetDescriptors(queryParams?: {
803
- parentId?: string;
804
- parentType?: string;
805
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
806
- /**
807
- * HTTP GET /model/assetInfo/{assetType}
808
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
809
- */
810
- getAssetInfo(assetType: string, queryParams?: {
811
- parentId?: string;
812
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
813
- /**
814
- * HTTP GET /model/assetInfos
815
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
816
- */
817
- getAssetInfos(queryParams?: {
818
- parentId?: string;
819
- parentType?: string;
820
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
821
- /**
822
- * HTTP GET /model/getValueDescriptorSchema
823
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
862
+ * HTTP POST /asset
863
+ * Java method: org.openremote.model.asset.AssetResource.create
824
864
  */
825
- getValueDescriptorSchema(queryParams?: {
826
- name?: string;
827
- hash?: string;
828
- }, options?: O): RestResponse<any>;
865
+ create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
829
866
  /**
830
- * HTTP GET /model/metaItemDescriptors
831
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
867
+ * HTTP DELETE /asset
868
+ * Java method: org.openremote.model.asset.AssetResource.delete
832
869
  */
833
- getMetaItemDescriptors(queryParams?: {
834
- parentId?: string;
835
- }, options?: O): RestResponse<{
836
- [index: string]: Model.MetaItemDescriptor;
837
- }>;
870
+ delete(queryParams?: {
871
+ assetId?: string[];
872
+ }, options?: O): RestResponse<void>;
838
873
  /**
839
- * HTTP GET /model/valueDescriptors
840
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
874
+ * HTTP PUT /asset/attributes
875
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
841
876
  */
842
- getValueDescriptors(queryParams?: {
843
- parentId?: string;
844
- }, options?: O): RestResponse<{
845
- [index: string]: Model.ValueDescriptor;
846
- }>;
847
- }
848
- export declare class RealmResourceClient<O> {
849
- protected httpClient: HttpClient<O>;
850
- constructor(httpClient: HttpClient<O>);
877
+ writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
851
878
  /**
852
- * HTTP POST /realm
853
- * Java method: org.openremote.model.security.RealmResource.create
879
+ * HTTP PUT /asset/attributes/timestamp
880
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
854
881
  */
855
- create(realm: Model.Realm, options?: O): RestResponse<void>;
882
+ writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
856
883
  /**
857
- * HTTP GET /realm
858
- * Java method: org.openremote.model.security.RealmResource.getAll
884
+ * HTTP POST /asset/count
885
+ * Java method: org.openremote.model.asset.AssetResource.queryCount
859
886
  */
860
- getAll(options?: O): RestResponse<Model.Realm[]>;
887
+ queryCount(query: Model.AssetQuery, options?: O): RestResponse<number>;
861
888
  /**
862
- * HTTP GET /realm/accessible
863
- * Java method: org.openremote.model.security.RealmResource.getAccessible
889
+ * HTTP DELETE /asset/parent
890
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
864
891
  */
865
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
892
+ updateNoneParent(queryParams?: {
893
+ assetIds?: string[];
894
+ }, options?: O): RestResponse<void>;
866
895
  /**
867
- * HTTP DELETE /realm/{name}
868
- * Java method: org.openremote.model.security.RealmResource.delete
896
+ * HTTP GET /asset/partial/{assetId}
897
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
869
898
  */
870
- delete(name: string, options?: O): RestResponse<void>;
899
+ getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
871
900
  /**
872
- * HTTP GET /realm/{name}
873
- * Java method: org.openremote.model.security.RealmResource.get
901
+ * HTTP POST /asset/query
902
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
874
903
  */
875
- get(name: string, options?: O): RestResponse<Model.Realm>;
904
+ queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
876
905
  /**
877
- * HTTP PUT /realm/{name}
878
- * Java method: org.openremote.model.security.RealmResource.update
906
+ * HTTP POST /asset/tree
907
+ * Java method: org.openremote.model.asset.AssetResource.queryAssetTree
879
908
  */
880
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
881
- }
882
- export declare class ExternalServiceResourceClient<O> {
883
- protected httpClient: HttpClient<O>;
884
- constructor(httpClient: HttpClient<O>);
909
+ queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
885
910
  /**
886
- * Response code 200 - List of registered external services
887
- * HTTP GET /service
888
- * Java method: org.openremote.model.services.ExternalServiceResource.getServices
911
+ * HTTP GET /asset/user/current
912
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
889
913
  */
890
- getServices(queryParams?: {
891
- realm?: string;
892
- }, options?: O): RestResponse<Model.ExternalService[]>;
914
+ getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
893
915
  /**
894
- * Response code 200 - Service registered successfully
895
- * Response code 400 - Invalid external service object
896
- * Response code 409 - ExternalService instance already registered
897
- * HTTP POST /service
898
- * Java method: org.openremote.model.services.ExternalServiceResource.registerService
916
+ * HTTP POST /asset/user/link
917
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
899
918
  */
900
- registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
919
+ createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
901
920
  /**
902
- * Response code 200 - List of registered external services
903
- * HTTP GET /service/global
904
- * Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
921
+ * HTTP GET /asset/user/link
922
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
905
923
  */
906
- getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
924
+ getUserAssetLinks(queryParams?: {
925
+ realm?: string;
926
+ userId?: string;
927
+ assetId?: string;
928
+ }, options?: O): RestResponse<Model.UserAssetLink[]>;
907
929
  /**
908
- * Response code 200 - Service registered successfully
909
- * Response code 400 - Invalid external service object
910
- * Response code 409 - ExternalService instance already registered
911
- * HTTP POST /service/global
912
- * Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
930
+ * HTTP POST /asset/user/link/delete
931
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
913
932
  */
914
- registerGlobalService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
933
+ deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
915
934
  /**
916
- * Response code 204 - Service deregistered successfully
917
- * Response code 404 - Service instance not found
918
- * HTTP DELETE /service/{serviceId}/{instanceId}
919
- * Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
935
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
936
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
920
937
  */
921
- deregisterService(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
938
+ deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
922
939
  /**
923
- * Response code 200 - ExternalService retrieved successfully
924
- * Response code 404 - ExternalService not found
925
- * HTTP GET /service/{serviceId}/{instanceId}
926
- * Java method: org.openremote.model.services.ExternalServiceResource.getService
940
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
941
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
927
942
  */
928
- getService(serviceId: string, instanceId: number, options?: O): RestResponse<Model.ExternalService>;
943
+ deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
929
944
  /**
930
- * Response code 204 - Heartbeat sent successfully
931
- * Response code 404 - Service instance not found
932
- * HTTP PUT /service/{serviceId}/{instanceId}
933
- * Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
945
+ * HTTP GET /asset/{assetId}
946
+ * Java method: org.openremote.model.asset.AssetResource.get
934
947
  */
935
- heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
936
- }
937
- export declare class AgentResourceClient<O> {
938
- protected httpClient: HttpClient<O>;
939
- constructor(httpClient: HttpClient<O>);
948
+ get(assetId: string, options?: O): RestResponse<Model.Asset>;
940
949
  /**
941
- * HTTP GET /agent/assetDiscovery/{agentId}
942
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
950
+ * HTTP PUT /asset/{assetId}
951
+ * Java method: org.openremote.model.asset.AssetResource.update
943
952
  */
944
- doProtocolAssetDiscovery(agentId: string, queryParams?: {
945
- realm?: string;
946
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
953
+ update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
947
954
  /**
948
- * HTTP POST /agent/assetImport/{agentId}
949
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
955
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
956
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
950
957
  */
951
- doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
952
- realm?: string;
953
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
958
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
954
959
  /**
955
- * HTTP GET /agent/instanceDiscovery/{agentType}
956
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
960
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
961
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
957
962
  */
958
- doProtocolInstanceDiscovery(agentType: string, queryParams?: {
959
- parentId?: string;
960
- realm?: string;
961
- }, options?: O): RestResponse<Model.Agent[]>;
962
- }
963
- export declare class ConsoleResourceClient<O> {
964
- protected httpClient: HttpClient<O>;
965
- constructor(httpClient: HttpClient<O>);
963
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
966
964
  /**
967
- * HTTP POST /console/register
968
- * Java method: org.openremote.model.console.ConsoleResource.register
965
+ * HTTP PUT /asset/{parentAssetId}/child
966
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
969
967
  */
970
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
968
+ updateParent(parentAssetId: string, queryParams?: {
969
+ assetIds?: string[];
970
+ }, options?: O): RestResponse<void>;
971
971
  }
972
972
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
973
973
  export declare class ApiClient {
974
974
  protected _syslogResource: AxiosSyslogResourceClient;
975
975
  protected _mapResource: AxiosMapResourceClient;
976
- protected _statusResource: AxiosStatusResourceClient;
976
+ protected _consoleResource: AxiosConsoleResourceClient;
977
+ protected _externalServiceResource: AxiosExternalServiceResourceClient;
978
+ protected _dashboardResource: AxiosDashboardResourceClient;
977
979
  protected _configurationResource: AxiosConfigurationResourceClient;
978
- protected _gatewayClientResource: AxiosGatewayClientResourceClient;
979
- protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
980
- protected _alarmResource: AxiosAlarmResourceClient;
981
980
  protected _rulesResource: AxiosRulesResourceClient;
982
- protected _notificationResource: AxiosNotificationResourceClient;
983
- protected _assetResource: AxiosAssetResourceClient;
984
- protected _flowResource: AxiosFlowResourceClient;
985
981
  protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
986
- protected _userResource: AxiosUserResourceClient;
987
- protected _provisioningResource: AxiosProvisioningResourceClient;
982
+ protected _alarmResource: AxiosAlarmResourceClient;
983
+ protected _gatewayClientResource: AxiosGatewayClientResourceClient;
984
+ protected _agentResource: AxiosAgentResourceClient;
988
985
  protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
989
- protected _appResource: AxiosAppResourceClient;
990
- protected _dashboardResource: AxiosDashboardResourceClient;
991
- protected _assetModelResource: AxiosAssetModelResourceClient;
986
+ protected _statusResource: AxiosStatusResourceClient;
992
987
  protected _realmResource: AxiosRealmResourceClient;
993
- protected _externalServiceResource: AxiosExternalServiceResourceClient;
994
- protected _agentResource: AxiosAgentResourceClient;
995
- protected _consoleResource: AxiosConsoleResourceClient;
988
+ protected _provisioningResource: AxiosProvisioningResourceClient;
989
+ protected _notificationResource: AxiosNotificationResourceClient;
990
+ protected _assetModelResource: AxiosAssetModelResourceClient;
991
+ protected _userResource: AxiosUserResourceClient;
992
+ protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
993
+ protected _appResource: AxiosAppResourceClient;
994
+ protected _flowResource: AxiosFlowResourceClient;
995
+ protected _assetResource: AxiosAssetResourceClient;
996
996
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
997
997
  get SyslogResource(): AxiosSyslogResourceClient;
998
998
  get MapResource(): AxiosMapResourceClient;
999
- get StatusResource(): AxiosStatusResourceClient;
999
+ get ConsoleResource(): AxiosConsoleResourceClient;
1000
+ get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1001
+ get DashboardResource(): AxiosDashboardResourceClient;
1000
1002
  get ConfigurationResource(): AxiosConfigurationResourceClient;
1001
- get GatewayClientResource(): AxiosGatewayClientResourceClient;
1002
- get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
1003
- get AlarmResource(): AxiosAlarmResourceClient;
1004
1003
  get RulesResource(): AxiosRulesResourceClient;
1005
- get NotificationResource(): AxiosNotificationResourceClient;
1006
- get AssetResource(): AxiosAssetResourceClient;
1007
- get FlowResource(): AxiosFlowResourceClient;
1008
1004
  get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1009
- get UserResource(): AxiosUserResourceClient;
1010
- get ProvisioningResource(): AxiosProvisioningResourceClient;
1005
+ get AlarmResource(): AxiosAlarmResourceClient;
1006
+ get GatewayClientResource(): AxiosGatewayClientResourceClient;
1007
+ get AgentResource(): AxiosAgentResourceClient;
1011
1008
  get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
1012
- get AppResource(): AxiosAppResourceClient;
1013
- get DashboardResource(): AxiosDashboardResourceClient;
1014
- get AssetModelResource(): AxiosAssetModelResourceClient;
1009
+ get StatusResource(): AxiosStatusResourceClient;
1015
1010
  get RealmResource(): AxiosRealmResourceClient;
1016
- get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1017
- get AgentResource(): AxiosAgentResourceClient;
1018
- get ConsoleResource(): AxiosConsoleResourceClient;
1011
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
1012
+ get NotificationResource(): AxiosNotificationResourceClient;
1013
+ get AssetModelResource(): AxiosAssetModelResourceClient;
1014
+ get UserResource(): AxiosUserResourceClient;
1015
+ get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
1016
+ get AppResource(): AxiosAppResourceClient;
1017
+ get FlowResource(): AxiosFlowResourceClient;
1018
+ get AssetResource(): AxiosAssetResourceClient;
1019
1019
  }
1020
1020
  import * as Axios from "axios";
1021
1021
  declare module "axios" {
@@ -1029,64 +1029,64 @@ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axio
1029
1029
  export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1030
1030
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1031
1031
  }
1032
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1033
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1034
- }
1035
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1032
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1036
1033
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1037
1034
  }
1038
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1035
+ export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1039
1036
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1040
1037
  }
1041
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1038
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1042
1039
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1043
1040
  }
1044
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1041
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1045
1042
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1046
1043
  }
1047
1044
  export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1048
1045
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1049
1046
  }
1050
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1047
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1051
1048
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1052
1049
  }
1053
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1050
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1054
1051
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1055
1052
  }
1056
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1053
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1057
1054
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1058
1055
  }
1059
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1056
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1060
1057
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1061
1058
  }
1062
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1059
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1063
1060
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1064
1061
  }
1065
- export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1062
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1066
1063
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1067
1064
  }
1068
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1065
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1069
1066
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1070
1067
  }
1071
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1068
+ export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1072
1069
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1073
1070
  }
1074
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1071
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1075
1072
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1076
1073
  }
1077
1074
  export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1078
1075
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1079
1076
  }
1080
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1077
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1081
1078
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1082
1079
  }
1083
- export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1080
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1084
1081
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1085
1082
  }
1086
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1083
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1087
1084
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1088
1085
  }
1089
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1086
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1087
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1088
+ }
1089
+ export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1090
1090
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1091
1091
  }
1092
1092
  //# sourceMappingURL=restclient.d.ts.map