@openremote/rest 1.9.0-snapshot.20250919113633 → 1.9.0-snapshot.20250922141329

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,6 +9,60 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
+ export declare class NotificationResourceClient<O> {
13
+ protected httpClient: HttpClient<O>;
14
+ constructor(httpClient: HttpClient<O>);
15
+ /**
16
+ * HTTP GET /notification
17
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
18
+ */
19
+ getNotifications(queryParams?: {
20
+ id?: number;
21
+ type?: string;
22
+ from?: number;
23
+ to?: number;
24
+ realmId?: string;
25
+ userId?: string;
26
+ assetId?: string;
27
+ }, options?: O): RestResponse<Model.SentNotification[]>;
28
+ /**
29
+ * HTTP DELETE /notification
30
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
31
+ */
32
+ removeNotifications(queryParams?: {
33
+ id?: number;
34
+ type?: string;
35
+ from?: number;
36
+ to?: number;
37
+ realmId?: string;
38
+ userId?: string;
39
+ assetId?: string;
40
+ }, options?: O): RestResponse<void>;
41
+ /**
42
+ * HTTP POST /notification/alert
43
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
44
+ */
45
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
46
+ /**
47
+ * HTTP DELETE /notification/{notificationId}
48
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
49
+ */
50
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
51
+ /**
52
+ * HTTP PUT /notification/{notificationId}/acknowledged
53
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
54
+ */
55
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
56
+ targetId?: string;
57
+ }, options?: O): RestResponse<void>;
58
+ /**
59
+ * HTTP PUT /notification/{notificationId}/delivered
60
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
61
+ */
62
+ notificationDelivered(notificationId: number, queryParams?: {
63
+ targetId?: string;
64
+ }, options?: O): RestResponse<void>;
65
+ }
12
66
  export declare class AssetPredictedDatapointResourceClient<O> {
13
67
  protected httpClient: HttpClient<O>;
14
68
  constructor(httpClient: HttpClient<O>);
@@ -23,124 +77,145 @@ export declare class AssetPredictedDatapointResourceClient<O> {
23
77
  */
24
78
  writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
25
79
  }
26
- export declare class AppResourceClient<O> {
80
+ export declare class AssetResourceClient<O> {
27
81
  protected httpClient: HttpClient<O>;
28
82
  constructor(httpClient: HttpClient<O>);
29
83
  /**
30
- * HTTP GET /apps
31
- * Java method: org.openremote.model.apps.AppResource.getApps
84
+ * HTTP POST /asset
85
+ * Java method: org.openremote.model.asset.AssetResource.create
32
86
  */
33
- getApps(options?: O): RestResponse<string[]>;
87
+ create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
34
88
  /**
35
- * HTTP GET /apps/consoleConfig
36
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
89
+ * HTTP DELETE /asset
90
+ * Java method: org.openremote.model.asset.AssetResource.delete
37
91
  */
38
- getConsoleConfig(options?: O): RestResponse<any>;
92
+ delete(queryParams?: {
93
+ assetId?: string[];
94
+ }, options?: O): RestResponse<void>;
39
95
  /**
40
- * HTTP GET /apps/info
41
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
96
+ * HTTP PUT /asset/attributes
97
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
42
98
  */
43
- getAppInfos(options?: O): RestResponse<any>;
44
- }
45
- export declare class GatewayServiceResourceClient<O> {
46
- protected httpClient: HttpClient<O>;
47
- constructor(httpClient: HttpClient<O>);
99
+ writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
48
100
  /**
49
- * HTTP POST /gateway/tunnel
50
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
101
+ * HTTP PUT /asset/attributes/timestamp
102
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
51
103
  */
52
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
104
+ writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
53
105
  /**
54
- * HTTP DELETE /gateway/tunnel
55
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
106
+ * HTTP DELETE /asset/parent
107
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
56
108
  */
57
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
109
+ updateNoneParent(queryParams?: {
110
+ assetIds?: string[];
111
+ }, options?: O): RestResponse<void>;
58
112
  /**
59
- * HTTP GET /gateway/tunnel/{realm}
60
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
113
+ * HTTP GET /asset/partial/{assetId}
114
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
61
115
  */
62
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
116
+ getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
63
117
  /**
64
- * HTTP GET /gateway/tunnel/{realm}/{id}
65
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
118
+ * HTTP POST /asset/query
119
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
66
120
  */
67
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
121
+ queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
68
122
  /**
69
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
70
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
123
+ * HTTP GET /asset/user/current
124
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
71
125
  */
72
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
73
- }
74
- export declare class AssetDatapointResourceClient<O> {
75
- protected httpClient: HttpClient<O>;
76
- constructor(httpClient: HttpClient<O>);
126
+ getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
77
127
  /**
78
- * HTTP GET /asset/datapoint/export
79
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
128
+ * HTTP POST /asset/user/link
129
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
80
130
  */
81
- getDatapointExport(queryParams?: {
82
- attributeRefs?: string;
83
- fromTimestamp?: number;
84
- toTimestamp?: number;
85
- }, options?: O): RestResponse<any>;
131
+ createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
86
132
  /**
87
- * HTTP GET /asset/datapoint/periods
88
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
133
+ * HTTP GET /asset/user/link
134
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
89
135
  */
90
- getDatapointPeriod(queryParams?: {
136
+ getUserAssetLinks(queryParams?: {
137
+ realm?: string;
138
+ userId?: string;
91
139
  assetId?: string;
92
- attributeName?: string;
93
- }, options?: O): RestResponse<Model.DatapointPeriod>;
140
+ }, options?: O): RestResponse<Model.UserAssetLink[]>;
94
141
  /**
95
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
96
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
142
+ * HTTP POST /asset/user/link/delete
143
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
97
144
  */
98
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
145
+ deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
146
+ /**
147
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
148
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
149
+ */
150
+ deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
151
+ /**
152
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
153
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
154
+ */
155
+ deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
156
+ /**
157
+ * HTTP GET /asset/{assetId}
158
+ * Java method: org.openremote.model.asset.AssetResource.get
159
+ */
160
+ get(assetId: string, options?: O): RestResponse<Model.Asset>;
161
+ /**
162
+ * HTTP PUT /asset/{assetId}
163
+ * Java method: org.openremote.model.asset.AssetResource.update
164
+ */
165
+ update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
166
+ /**
167
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
168
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
169
+ */
170
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
171
+ /**
172
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
173
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
174
+ */
175
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
176
+ /**
177
+ * HTTP PUT /asset/{parentAssetId}/child
178
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
179
+ */
180
+ updateParent(parentAssetId: string, queryParams?: {
181
+ assetIds?: string[];
182
+ }, options?: O): RestResponse<void>;
99
183
  }
100
- export declare class AssetModelResourceClient<O> {
184
+ export declare class GatewayClientResourceClient<O> {
101
185
  protected httpClient: HttpClient<O>;
102
186
  constructor(httpClient: HttpClient<O>);
103
187
  /**
104
- * HTTP GET /model/assetDescriptors
105
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
188
+ * HTTP DELETE /gateway/connection
189
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
106
190
  */
107
- getAssetDescriptors(queryParams?: {
108
- parentId?: string;
109
- parentType?: string;
110
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
191
+ deleteConnections(queryParams?: {
192
+ realm?: string[];
193
+ }, options?: O): RestResponse<void>;
111
194
  /**
112
- * HTTP GET /model/assetInfo/{assetType}
113
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
195
+ * HTTP GET /gateway/connection
196
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
114
197
  */
115
- getAssetInfo(assetType: string, queryParams?: {
116
- parentId?: string;
117
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
198
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
118
199
  /**
119
- * HTTP GET /model/assetInfos
120
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
200
+ * HTTP DELETE /gateway/connection/{realm}
201
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
121
202
  */
122
- getAssetInfos(queryParams?: {
123
- parentId?: string;
124
- parentType?: string;
125
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
203
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
126
204
  /**
127
- * HTTP GET /model/metaItemDescriptors
128
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
205
+ * HTTP GET /gateway/connection/{realm}
206
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
129
207
  */
130
- getMetaItemDescriptors(queryParams?: {
131
- parentId?: string;
132
- }, options?: O): RestResponse<{
133
- [index: string]: Model.MetaItemDescriptor;
134
- }>;
208
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
135
209
  /**
136
- * HTTP GET /model/valueDescriptors
137
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
210
+ * HTTP PUT /gateway/connection/{realm}
211
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
138
212
  */
139
- getValueDescriptors(queryParams?: {
140
- parentId?: string;
141
- }, options?: O): RestResponse<{
142
- [index: string]: Model.ValueDescriptor;
143
- }>;
213
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
214
+ /**
215
+ * HTTP GET /gateway/status/{realm}
216
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
217
+ */
218
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
144
219
  }
145
220
  export declare class ConfigurationResourceClient<O> {
146
221
  protected httpClient: HttpClient<O>;
@@ -168,39 +243,34 @@ export declare class ConfigurationResourceClient<O> {
168
243
  */
169
244
  getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
170
245
  }
171
- export declare class RealmResourceClient<O> {
246
+ export declare class GatewayServiceResourceClient<O> {
172
247
  protected httpClient: HttpClient<O>;
173
248
  constructor(httpClient: HttpClient<O>);
174
249
  /**
175
- * HTTP POST /realm
176
- * Java method: org.openremote.model.security.RealmResource.create
177
- */
178
- create(realm: Model.Realm, options?: O): RestResponse<void>;
179
- /**
180
- * HTTP GET /realm
181
- * Java method: org.openremote.model.security.RealmResource.getAll
250
+ * HTTP POST /gateway/tunnel
251
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
182
252
  */
183
- getAll(options?: O): RestResponse<Model.Realm[]>;
253
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
184
254
  /**
185
- * HTTP GET /realm/accessible
186
- * Java method: org.openremote.model.security.RealmResource.getAccessible
255
+ * HTTP DELETE /gateway/tunnel
256
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
187
257
  */
188
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
258
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
189
259
  /**
190
- * HTTP DELETE /realm/{name}
191
- * Java method: org.openremote.model.security.RealmResource.delete
260
+ * HTTP GET /gateway/tunnel/{realm}
261
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
192
262
  */
193
- delete(name: string, options?: O): RestResponse<void>;
263
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
194
264
  /**
195
- * HTTP GET /realm/{name}
196
- * Java method: org.openremote.model.security.RealmResource.get
265
+ * HTTP GET /gateway/tunnel/{realm}/{id}
266
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
197
267
  */
198
- get(name: string, options?: O): RestResponse<Model.Realm>;
268
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
199
269
  /**
200
- * HTTP PUT /realm/{name}
201
- * Java method: org.openremote.model.security.RealmResource.update
270
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
271
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
202
272
  */
203
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
273
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
204
274
  }
205
275
  export declare class StatusResourceClient<O> {
206
276
  protected httpClient: HttpClient<O>;
@@ -220,6 +290,91 @@ export declare class StatusResourceClient<O> {
220
290
  [index: string]: any;
221
291
  }>;
222
292
  }
293
+ export declare class SyslogResourceClient<O> {
294
+ protected httpClient: HttpClient<O>;
295
+ constructor(httpClient: HttpClient<O>);
296
+ /**
297
+ * HTTP GET /syslog/config
298
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
299
+ */
300
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
301
+ /**
302
+ * HTTP PUT /syslog/config
303
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
304
+ */
305
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
306
+ /**
307
+ * HTTP DELETE /syslog/event
308
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
309
+ */
310
+ clearEvents(options?: O): RestResponse<void>;
311
+ /**
312
+ * HTTP GET /syslog/event
313
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
314
+ */
315
+ getEvents(queryParams?: {
316
+ level?: Model.SyslogLevel;
317
+ per_page?: number;
318
+ page?: number;
319
+ from?: number;
320
+ to?: number;
321
+ category?: Model.SyslogCategory[];
322
+ subCategory?: string[];
323
+ }, options?: O): RestResponse<any>;
324
+ }
325
+ export declare class AlarmResourceClient<O> {
326
+ protected httpClient: HttpClient<O>;
327
+ constructor(httpClient: HttpClient<O>);
328
+ /**
329
+ * HTTP POST /alarm
330
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
331
+ */
332
+ createAlarm(alarm: Model.Alarm, queryParams?: {
333
+ assetIds?: string[];
334
+ }, options?: O): RestResponse<Model.SentAlarm>;
335
+ /**
336
+ * HTTP GET /alarm
337
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
338
+ */
339
+ getAlarms(queryParams?: {
340
+ realm?: string;
341
+ status?: Model.AlarmStatus;
342
+ assetId?: string;
343
+ assigneeId?: string;
344
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
345
+ /**
346
+ * HTTP DELETE /alarm
347
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
348
+ */
349
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
350
+ /**
351
+ * HTTP PUT /alarm/assets
352
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
353
+ */
354
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
355
+ /**
356
+ * HTTP GET /alarm/{alarmId}
357
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
358
+ */
359
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
360
+ /**
361
+ * HTTP DELETE /alarm/{alarmId}
362
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
363
+ */
364
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
365
+ /**
366
+ * HTTP PUT /alarm/{alarmId}
367
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
368
+ */
369
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
370
+ /**
371
+ * HTTP GET /alarm/{alarmId}/assets
372
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
373
+ */
374
+ getAssetLinks(alarmId: number, queryParams?: {
375
+ realm?: string;
376
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
377
+ }
223
378
  export declare class UserResourceClient<O> {
224
379
  protected httpClient: HttpClient<O>;
225
380
  constructor(httpClient: HttpClient<O>);
@@ -334,15 +489,110 @@ export declare class UserResourceClient<O> {
334
489
  */
335
490
  getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
336
491
  /**
337
- * HTTP PUT /user/{realm}/{clientId}/roles
338
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
492
+ * HTTP PUT /user/{realm}/{clientId}/roles
493
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
494
+ */
495
+ updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
496
+ /**
497
+ * HTTP GET /user/{realm}/{userId}
498
+ * Java method: org.openremote.model.security.UserResource.get
499
+ */
500
+ get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
501
+ }
502
+ export declare class ProvisioningResourceClient<O> {
503
+ protected httpClient: HttpClient<O>;
504
+ constructor(httpClient: HttpClient<O>);
505
+ /**
506
+ * HTTP POST /provisioning
507
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
508
+ */
509
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
510
+ /**
511
+ * HTTP GET /provisioning
512
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
513
+ */
514
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
515
+ /**
516
+ * HTTP DELETE /provisioning/{id}
517
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
518
+ */
519
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
520
+ /**
521
+ * HTTP PUT /provisioning/{id}
522
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
523
+ */
524
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
525
+ }
526
+ export declare class AssetModelResourceClient<O> {
527
+ protected httpClient: HttpClient<O>;
528
+ constructor(httpClient: HttpClient<O>);
529
+ /**
530
+ * HTTP GET /model/assetDescriptors
531
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
532
+ */
533
+ getAssetDescriptors(queryParams?: {
534
+ parentId?: string;
535
+ parentType?: string;
536
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
537
+ /**
538
+ * HTTP GET /model/assetInfo/{assetType}
539
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
540
+ */
541
+ getAssetInfo(assetType: string, queryParams?: {
542
+ parentId?: string;
543
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
544
+ /**
545
+ * HTTP GET /model/assetInfos
546
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
547
+ */
548
+ getAssetInfos(queryParams?: {
549
+ parentId?: string;
550
+ parentType?: string;
551
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
552
+ /**
553
+ * HTTP GET /model/metaItemDescriptors
554
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
555
+ */
556
+ getMetaItemDescriptors(queryParams?: {
557
+ parentId?: string;
558
+ }, options?: O): RestResponse<{
559
+ [index: string]: Model.MetaItemDescriptor;
560
+ }>;
561
+ /**
562
+ * HTTP GET /model/valueDescriptors
563
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
564
+ */
565
+ getValueDescriptors(queryParams?: {
566
+ parentId?: string;
567
+ }, options?: O): RestResponse<{
568
+ [index: string]: Model.ValueDescriptor;
569
+ }>;
570
+ }
571
+ export declare class AgentResourceClient<O> {
572
+ protected httpClient: HttpClient<O>;
573
+ constructor(httpClient: HttpClient<O>);
574
+ /**
575
+ * HTTP GET /agent/assetDiscovery/{agentId}
576
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
577
+ */
578
+ doProtocolAssetDiscovery(agentId: string, queryParams?: {
579
+ realm?: string;
580
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
581
+ /**
582
+ * HTTP POST /agent/assetImport/{agentId}
583
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
339
584
  */
340
- updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
585
+ doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
586
+ realm?: string;
587
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
341
588
  /**
342
- * HTTP GET /user/{realm}/{userId}
343
- * Java method: org.openremote.model.security.UserResource.get
589
+ * HTTP GET /agent/instanceDiscovery/{agentType}
590
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
344
591
  */
345
- get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
592
+ doProtocolInstanceDiscovery(agentType: string, queryParams?: {
593
+ parentId?: string;
594
+ realm?: string;
595
+ }, options?: O): RestResponse<Model.Agent[]>;
346
596
  }
347
597
  export declare class RulesResourceClient<O> {
348
598
  protected httpClient: HttpClient<O>;
@@ -452,219 +702,6 @@ export declare class RulesResourceClient<O> {
452
702
  */
453
703
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
454
704
  }
455
- export declare class AssetResourceClient<O> {
456
- protected httpClient: HttpClient<O>;
457
- constructor(httpClient: HttpClient<O>);
458
- /**
459
- * HTTP POST /asset
460
- * Java method: org.openremote.model.asset.AssetResource.create
461
- */
462
- create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
463
- /**
464
- * HTTP DELETE /asset
465
- * Java method: org.openremote.model.asset.AssetResource.delete
466
- */
467
- delete(queryParams?: {
468
- assetId?: string[];
469
- }, options?: O): RestResponse<void>;
470
- /**
471
- * HTTP PUT /asset/attributes
472
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
473
- */
474
- writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
475
- /**
476
- * HTTP PUT /asset/attributes/timestamp
477
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
478
- */
479
- writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
480
- /**
481
- * HTTP DELETE /asset/parent
482
- * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
483
- */
484
- updateNoneParent(queryParams?: {
485
- assetIds?: string[];
486
- }, options?: O): RestResponse<void>;
487
- /**
488
- * HTTP GET /asset/partial/{assetId}
489
- * Java method: org.openremote.model.asset.AssetResource.getPartial
490
- */
491
- getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
492
- /**
493
- * HTTP POST /asset/query
494
- * Java method: org.openremote.model.asset.AssetResource.queryAssets
495
- */
496
- queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
497
- /**
498
- * HTTP GET /asset/user/current
499
- * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
500
- */
501
- getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
502
- /**
503
- * HTTP POST /asset/user/link
504
- * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
505
- */
506
- createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
507
- /**
508
- * HTTP GET /asset/user/link
509
- * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
510
- */
511
- getUserAssetLinks(queryParams?: {
512
- realm?: string;
513
- userId?: string;
514
- assetId?: string;
515
- }, options?: O): RestResponse<Model.UserAssetLink[]>;
516
- /**
517
- * HTTP POST /asset/user/link/delete
518
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
519
- */
520
- deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
521
- /**
522
- * HTTP DELETE /asset/user/link/{realm}/{userId}
523
- * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
524
- */
525
- deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
526
- /**
527
- * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
528
- * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
529
- */
530
- deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
531
- /**
532
- * HTTP GET /asset/{assetId}
533
- * Java method: org.openremote.model.asset.AssetResource.get
534
- */
535
- get(assetId: string, options?: O): RestResponse<Model.Asset>;
536
- /**
537
- * HTTP PUT /asset/{assetId}
538
- * Java method: org.openremote.model.asset.AssetResource.update
539
- */
540
- update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
541
- /**
542
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}
543
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
544
- */
545
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
546
- /**
547
- * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
548
- * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
549
- */
550
- writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
551
- /**
552
- * HTTP PUT /asset/{parentAssetId}/child
553
- * Java method: org.openremote.model.asset.AssetResource.updateParent
554
- */
555
- updateParent(parentAssetId: string, queryParams?: {
556
- assetIds?: string[];
557
- }, options?: O): RestResponse<void>;
558
- }
559
- export declare class ProvisioningResourceClient<O> {
560
- protected httpClient: HttpClient<O>;
561
- constructor(httpClient: HttpClient<O>);
562
- /**
563
- * HTTP POST /provisioning
564
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
565
- */
566
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
567
- /**
568
- * HTTP GET /provisioning
569
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
570
- */
571
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
572
- /**
573
- * HTTP DELETE /provisioning/{id}
574
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
575
- */
576
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
577
- /**
578
- * HTTP PUT /provisioning/{id}
579
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
580
- */
581
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
582
- }
583
- export declare class SyslogResourceClient<O> {
584
- protected httpClient: HttpClient<O>;
585
- constructor(httpClient: HttpClient<O>);
586
- /**
587
- * HTTP GET /syslog/config
588
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
589
- */
590
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
591
- /**
592
- * HTTP PUT /syslog/config
593
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
594
- */
595
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
596
- /**
597
- * HTTP DELETE /syslog/event
598
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
599
- */
600
- clearEvents(options?: O): RestResponse<void>;
601
- /**
602
- * HTTP GET /syslog/event
603
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
604
- */
605
- getEvents(queryParams?: {
606
- level?: Model.SyslogLevel;
607
- per_page?: number;
608
- page?: number;
609
- from?: number;
610
- to?: number;
611
- category?: Model.SyslogCategory[];
612
- subCategory?: string[];
613
- }, options?: O): RestResponse<any>;
614
- }
615
- export declare class AlarmResourceClient<O> {
616
- protected httpClient: HttpClient<O>;
617
- constructor(httpClient: HttpClient<O>);
618
- /**
619
- * HTTP POST /alarm
620
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
621
- */
622
- createAlarm(alarm: Model.Alarm, queryParams?: {
623
- assetIds?: string[];
624
- }, options?: O): RestResponse<Model.SentAlarm>;
625
- /**
626
- * HTTP GET /alarm
627
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
628
- */
629
- getAlarms(queryParams?: {
630
- realm?: string;
631
- status?: Model.AlarmStatus;
632
- assetId?: string;
633
- assigneeId?: string;
634
- }, options?: O): RestResponse<Model.SentAlarm[]>;
635
- /**
636
- * HTTP DELETE /alarm
637
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
638
- */
639
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
640
- /**
641
- * HTTP PUT /alarm/assets
642
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
643
- */
644
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
645
- /**
646
- * HTTP GET /alarm/{alarmId}
647
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
648
- */
649
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
650
- /**
651
- * HTTP DELETE /alarm/{alarmId}
652
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
653
- */
654
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
655
- /**
656
- * HTTP PUT /alarm/{alarmId}
657
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
658
- */
659
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
660
- /**
661
- * HTTP GET /alarm/{alarmId}/assets
662
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
663
- */
664
- getAssetLinks(alarmId: number, queryParams?: {
665
- realm?: string;
666
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
667
- }
668
705
  export declare class MapResourceClient<O> {
669
706
  protected httpClient: HttpClient<O>;
670
707
  constructor(httpClient: HttpClient<O>);
@@ -718,48 +755,60 @@ export declare class MapResourceClient<O> {
718
755
  [id: string]: unknown;
719
756
  }>;
720
757
  }
721
- export declare class ConsoleResourceClient<O> {
758
+ export declare class ExternalServiceResourceClient<O> {
722
759
  protected httpClient: HttpClient<O>;
723
760
  constructor(httpClient: HttpClient<O>);
724
761
  /**
725
- * HTTP POST /console/register
726
- * Java method: org.openremote.model.console.ConsoleResource.register
762
+ * Response code 200 - List of registered external services
763
+ * HTTP GET /service
764
+ * Java method: org.openremote.model.services.ExternalServiceResource.getServices
727
765
  */
728
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
729
- }
730
- export declare class DashboardResourceClient<O> {
731
- protected httpClient: HttpClient<O>;
732
- constructor(httpClient: HttpClient<O>);
766
+ getServices(queryParams?: {
767
+ realm?: string;
768
+ }, options?: O): RestResponse<Model.ExternalService[]>;
733
769
  /**
734
- * HTTP POST /dashboard
735
- * Java method: org.openremote.model.dashboard.DashboardResource.create
770
+ * Response code 200 - Service registered successfully
771
+ * Response code 400 - Invalid external service object
772
+ * Response code 409 - ExternalService instance already registered
773
+ * HTTP POST /service
774
+ * Java method: org.openremote.model.services.ExternalServiceResource.registerService
736
775
  */
737
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
776
+ registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
738
777
  /**
739
- * HTTP PUT /dashboard
740
- * Java method: org.openremote.model.dashboard.DashboardResource.update
778
+ * Response code 200 - List of registered external services
779
+ * HTTP GET /service/global
780
+ * Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
741
781
  */
742
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
782
+ getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
743
783
  /**
744
- * HTTP GET /dashboard/all/{realm}
745
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
784
+ * Response code 200 - Service registered successfully
785
+ * Response code 400 - Invalid external service object
786
+ * Response code 409 - ExternalService instance already registered
787
+ * HTTP POST /service/global
788
+ * Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
746
789
  */
747
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
790
+ registerGlobalService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
748
791
  /**
749
- * HTTP POST /dashboard/query
750
- * Java method: org.openremote.model.dashboard.DashboardResource.query
792
+ * Response code 204 - Service deregistered successfully
793
+ * Response code 404 - Service instance not found
794
+ * HTTP DELETE /service/{serviceId}/{instanceId}
795
+ * Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
751
796
  */
752
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
797
+ deregisterService(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
753
798
  /**
754
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
755
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
799
+ * Response code 200 - ExternalService retrieved successfully
800
+ * Response code 404 - ExternalService not found
801
+ * HTTP GET /service/{serviceId}/{instanceId}
802
+ * Java method: org.openremote.model.services.ExternalServiceResource.getService
756
803
  */
757
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
804
+ getService(serviceId: string, instanceId: number, options?: O): RestResponse<Model.ExternalService>;
758
805
  /**
759
- * HTTP GET /dashboard/{realm}/{dashboardId}
760
- * Java method: org.openremote.model.dashboard.DashboardResource.get
806
+ * Response code 204 - Heartbeat sent successfully
807
+ * Response code 404 - Service instance not found
808
+ * HTTP PUT /service/{serviceId}/{instanceId}
809
+ * Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
761
810
  */
762
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
811
+ heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
763
812
  }
764
813
  export declare class FlowResourceClient<O> {
765
814
  protected httpClient: HttpClient<O>;
@@ -780,167 +829,175 @@ export declare class FlowResourceClient<O> {
780
829
  */
781
830
  getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
782
831
  }
783
- export declare class AgentResourceClient<O> {
832
+ export declare class ConsoleResourceClient<O> {
784
833
  protected httpClient: HttpClient<O>;
785
834
  constructor(httpClient: HttpClient<O>);
786
835
  /**
787
- * HTTP GET /agent/assetDiscovery/{agentId}
788
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
836
+ * HTTP POST /console/register
837
+ * Java method: org.openremote.model.console.ConsoleResource.register
789
838
  */
790
- doProtocolAssetDiscovery(agentId: string, queryParams?: {
791
- realm?: string;
792
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
839
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
840
+ }
841
+ export declare class AssetDatapointResourceClient<O> {
842
+ protected httpClient: HttpClient<O>;
843
+ constructor(httpClient: HttpClient<O>);
793
844
  /**
794
- * HTTP POST /agent/assetImport/{agentId}
795
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
845
+ * HTTP GET /asset/datapoint/export
846
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
796
847
  */
797
- doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
798
- realm?: string;
799
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
848
+ getDatapointExport(queryParams?: {
849
+ attributeRefs?: string;
850
+ fromTimestamp?: number;
851
+ toTimestamp?: number;
852
+ }, options?: O): RestResponse<any>;
800
853
  /**
801
- * HTTP GET /agent/instanceDiscovery/{agentType}
802
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
854
+ * HTTP GET /asset/datapoint/periods
855
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
803
856
  */
804
- doProtocolInstanceDiscovery(agentType: string, queryParams?: {
805
- parentId?: string;
806
- realm?: string;
807
- }, options?: O): RestResponse<Model.Agent[]>;
857
+ getDatapointPeriod(queryParams?: {
858
+ assetId?: string;
859
+ attributeName?: string;
860
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
861
+ /**
862
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
863
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
864
+ */
865
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
808
866
  }
809
- export declare class NotificationResourceClient<O> {
867
+ export declare class AppResourceClient<O> {
810
868
  protected httpClient: HttpClient<O>;
811
869
  constructor(httpClient: HttpClient<O>);
812
870
  /**
813
- * HTTP GET /notification
814
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
871
+ * HTTP GET /apps
872
+ * Java method: org.openremote.model.apps.AppResource.getApps
815
873
  */
816
- getNotifications(queryParams?: {
817
- id?: number;
818
- type?: string;
819
- from?: number;
820
- to?: number;
821
- realmId?: string;
822
- userId?: string;
823
- assetId?: string;
824
- }, options?: O): RestResponse<Model.SentNotification[]>;
874
+ getApps(options?: O): RestResponse<string[]>;
825
875
  /**
826
- * HTTP DELETE /notification
827
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
876
+ * HTTP GET /apps/consoleConfig
877
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
828
878
  */
829
- removeNotifications(queryParams?: {
830
- id?: number;
831
- type?: string;
832
- from?: number;
833
- to?: number;
834
- realmId?: string;
835
- userId?: string;
836
- assetId?: string;
837
- }, options?: O): RestResponse<void>;
879
+ getConsoleConfig(options?: O): RestResponse<any>;
838
880
  /**
839
- * HTTP POST /notification/alert
840
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
881
+ * HTTP GET /apps/info
882
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
841
883
  */
842
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
884
+ getAppInfos(options?: O): RestResponse<any>;
885
+ }
886
+ export declare class RealmResourceClient<O> {
887
+ protected httpClient: HttpClient<O>;
888
+ constructor(httpClient: HttpClient<O>);
843
889
  /**
844
- * HTTP DELETE /notification/{notificationId}
845
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
890
+ * HTTP POST /realm
891
+ * Java method: org.openremote.model.security.RealmResource.create
846
892
  */
847
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
893
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
848
894
  /**
849
- * HTTP PUT /notification/{notificationId}/acknowledged
850
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
895
+ * HTTP GET /realm
896
+ * Java method: org.openremote.model.security.RealmResource.getAll
851
897
  */
852
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
853
- targetId?: string;
854
- }, options?: O): RestResponse<void>;
898
+ getAll(options?: O): RestResponse<Model.Realm[]>;
855
899
  /**
856
- * HTTP PUT /notification/{notificationId}/delivered
857
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
900
+ * HTTP GET /realm/accessible
901
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
858
902
  */
859
- notificationDelivered(notificationId: number, queryParams?: {
860
- targetId?: string;
861
- }, options?: O): RestResponse<void>;
903
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
904
+ /**
905
+ * HTTP DELETE /realm/{name}
906
+ * Java method: org.openremote.model.security.RealmResource.delete
907
+ */
908
+ delete(name: string, options?: O): RestResponse<void>;
909
+ /**
910
+ * HTTP GET /realm/{name}
911
+ * Java method: org.openremote.model.security.RealmResource.get
912
+ */
913
+ get(name: string, options?: O): RestResponse<Model.Realm>;
914
+ /**
915
+ * HTTP PUT /realm/{name}
916
+ * Java method: org.openremote.model.security.RealmResource.update
917
+ */
918
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
862
919
  }
863
- export declare class GatewayClientResourceClient<O> {
920
+ export declare class DashboardResourceClient<O> {
864
921
  protected httpClient: HttpClient<O>;
865
922
  constructor(httpClient: HttpClient<O>);
866
923
  /**
867
- * HTTP DELETE /gateway/connection
868
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
924
+ * HTTP POST /dashboard
925
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
869
926
  */
870
- deleteConnections(queryParams?: {
871
- realm?: string[];
872
- }, options?: O): RestResponse<void>;
927
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
873
928
  /**
874
- * HTTP GET /gateway/connection
875
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
929
+ * HTTP PUT /dashboard
930
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
876
931
  */
877
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
932
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
878
933
  /**
879
- * HTTP DELETE /gateway/connection/{realm}
880
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
934
+ * HTTP GET /dashboard/all/{realm}
935
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
881
936
  */
882
- deleteConnection(realm: string, options?: O): RestResponse<void>;
937
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
883
938
  /**
884
- * HTTP GET /gateway/connection/{realm}
885
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
939
+ * HTTP POST /dashboard/query
940
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
886
941
  */
887
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
942
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
888
943
  /**
889
- * HTTP PUT /gateway/connection/{realm}
890
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
944
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
945
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
891
946
  */
892
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
947
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
893
948
  /**
894
- * HTTP GET /gateway/status/{realm}
895
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
949
+ * HTTP GET /dashboard/{realm}/{dashboardId}
950
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
896
951
  */
897
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
952
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
898
953
  }
899
954
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
900
955
  export declare class ApiClient {
956
+ protected _notificationResource: AxiosNotificationResourceClient;
901
957
  protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
902
- protected _appResource: AxiosAppResourceClient;
903
- protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
904
- protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
905
- protected _assetModelResource: AxiosAssetModelResourceClient;
958
+ protected _assetResource: AxiosAssetResourceClient;
959
+ protected _gatewayClientResource: AxiosGatewayClientResourceClient;
906
960
  protected _configurationResource: AxiosConfigurationResourceClient;
907
- protected _realmResource: AxiosRealmResourceClient;
961
+ protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
908
962
  protected _statusResource: AxiosStatusResourceClient;
909
- protected _userResource: AxiosUserResourceClient;
910
- protected _rulesResource: AxiosRulesResourceClient;
911
- protected _assetResource: AxiosAssetResourceClient;
912
- protected _provisioningResource: AxiosProvisioningResourceClient;
913
963
  protected _syslogResource: AxiosSyslogResourceClient;
914
964
  protected _alarmResource: AxiosAlarmResourceClient;
965
+ protected _userResource: AxiosUserResourceClient;
966
+ protected _provisioningResource: AxiosProvisioningResourceClient;
967
+ protected _assetModelResource: AxiosAssetModelResourceClient;
968
+ protected _agentResource: AxiosAgentResourceClient;
969
+ protected _rulesResource: AxiosRulesResourceClient;
915
970
  protected _mapResource: AxiosMapResourceClient;
971
+ protected _externalServiceResource: AxiosExternalServiceResourceClient;
972
+ protected _flowResource: AxiosFlowResourceClient;
916
973
  protected _consoleResource: AxiosConsoleResourceClient;
974
+ protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
975
+ protected _appResource: AxiosAppResourceClient;
976
+ protected _realmResource: AxiosRealmResourceClient;
917
977
  protected _dashboardResource: AxiosDashboardResourceClient;
918
- protected _flowResource: AxiosFlowResourceClient;
919
- protected _agentResource: AxiosAgentResourceClient;
920
- protected _notificationResource: AxiosNotificationResourceClient;
921
- protected _gatewayClientResource: AxiosGatewayClientResourceClient;
922
978
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
979
+ get NotificationResource(): AxiosNotificationResourceClient;
923
980
  get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
924
- get AppResource(): AxiosAppResourceClient;
925
- get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
926
- get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
927
- get AssetModelResource(): AxiosAssetModelResourceClient;
981
+ get AssetResource(): AxiosAssetResourceClient;
982
+ get GatewayClientResource(): AxiosGatewayClientResourceClient;
928
983
  get ConfigurationResource(): AxiosConfigurationResourceClient;
929
- get RealmResource(): AxiosRealmResourceClient;
984
+ get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
930
985
  get StatusResource(): AxiosStatusResourceClient;
931
- get UserResource(): AxiosUserResourceClient;
932
- get RulesResource(): AxiosRulesResourceClient;
933
- get AssetResource(): AxiosAssetResourceClient;
934
- get ProvisioningResource(): AxiosProvisioningResourceClient;
935
986
  get SyslogResource(): AxiosSyslogResourceClient;
936
987
  get AlarmResource(): AxiosAlarmResourceClient;
988
+ get UserResource(): AxiosUserResourceClient;
989
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
990
+ get AssetModelResource(): AxiosAssetModelResourceClient;
991
+ get AgentResource(): AxiosAgentResourceClient;
992
+ get RulesResource(): AxiosRulesResourceClient;
937
993
  get MapResource(): AxiosMapResourceClient;
994
+ get ExternalServiceResource(): AxiosExternalServiceResourceClient;
995
+ get FlowResource(): AxiosFlowResourceClient;
938
996
  get ConsoleResource(): AxiosConsoleResourceClient;
997
+ get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
998
+ get AppResource(): AxiosAppResourceClient;
999
+ get RealmResource(): AxiosRealmResourceClient;
939
1000
  get DashboardResource(): AxiosDashboardResourceClient;
940
- get FlowResource(): AxiosFlowResourceClient;
941
- get AgentResource(): AxiosAgentResourceClient;
942
- get NotificationResource(): AxiosNotificationResourceClient;
943
- get GatewayClientResource(): AxiosGatewayClientResourceClient;
944
1001
  }
945
1002
  import * as Axios from "axios";
946
1003
  declare module "axios" {
@@ -948,66 +1005,69 @@ declare module "axios" {
948
1005
  data: R;
949
1006
  }
950
1007
  }
951
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
952
- constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
953
- }
954
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1008
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
955
1009
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
956
1010
  }
957
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1011
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
958
1012
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
959
1013
  }
960
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1014
+ export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
961
1015
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
962
1016
  }
963
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1017
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
964
1018
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
965
1019
  }
966
1020
  export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
967
1021
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
968
1022
  }
969
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1023
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
970
1024
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
971
1025
  }
972
1026
  export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
973
1027
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
974
1028
  }
975
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1029
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
976
1030
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
977
1031
  }
978
- export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1032
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
979
1033
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
980
1034
  }
981
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1035
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
982
1036
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
983
1037
  }
984
1038
  export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
985
1039
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
986
1040
  }
987
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1041
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
988
1042
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
989
1043
  }
990
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1044
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
991
1045
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
992
1046
  }
993
- export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1047
+ export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
994
1048
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
995
1049
  }
996
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1050
+ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
997
1051
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
998
1052
  }
999
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1053
+ export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1000
1054
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1001
1055
  }
1002
1056
  export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1003
1057
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1004
1058
  }
1005
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1059
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1006
1060
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1007
1061
  }
1008
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1062
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1009
1063
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1010
1064
  }
1011
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1065
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1066
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1067
+ }
1068
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1069
+ constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1070
+ }
1071
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1012
1072
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1013
1073
  }