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