@openremote/rest 1.4.0-snapshot.20250221145955 → 1.4.0-snapshot.20250225102402

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