@openremote/rest 1.4.0-snapshot.20250404091810 → 1.4.0-snapshot.20250404143057

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