@openremote/rest 1.9.0-snapshot.20250911121739 → 1.9.0-snapshot.20250915075908

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