@openremote/rest 1.3.0-snapshot.20250217202357 → 1.3.0-snapshot.20250218143028

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