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

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