@openremote/rest 1.9.0-snapshot.20250904114348 → 1.9.0-snapshot.20250905083755

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