@openremote/rest 1.6.0 → 1.7.0-snapshot.20250522152736

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