@openremote/rest 1.4.0-snapshot.20250402122157 → 1.4.0-snapshot.20250402143121

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