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

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