@openremote/rest 1.8.0-snapshot.20250818091158 → 1.8.0-snapshot.20250818111451

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