@openremote/rest 1.9.0-snapshot.20250915134245 → 1.9.0-snapshot.20250915151349

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