@openremote/rest 1.4.0-snapshot.20250331211521 → 1.4.0-snapshot.20250401080352

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