@openremote/rest 1.6.0-snapshot.20250513081115 → 1.6.0-snapshot.20250513093322

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