@openremote/rest 1.9.0-snapshot.20250905090529 → 1.9.0-snapshot.20250905102650

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