@openremote/rest 1.7.0-snapshot.20250611143921 → 1.7.0-snapshot.20250623172317

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