@openremote/rest 1.13.0-snapshot.20251217164512 → 1.13.0-snapshot.20251218130832

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