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

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