@openremote/rest 1.7.0-snapshot.20250707100509 → 1.8.0-snapshot.20250708080226

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