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

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