@openremote/rest 1.8.0-snapshot.20250725123024 → 1.8.0-snapshot.20250728102340

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