@openremote/rest 1.3.0-snapshot.20250122164613 → 1.3.0-snapshot.20250123153842

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