@openremote/rest 1.13.0-snapshot.20251217160758 → 1.13.0-snapshot.20251217164512

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,204 +9,59 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class StatusResourceClient<O> {
13
- protected httpClient: HttpClient<O>;
14
- constructor(httpClient: HttpClient<O>);
15
- /**
16
- * HTTP GET /health
17
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
18
- */
19
- getHealthStatus(options?: O): RestResponse<{
20
- [index: string]: any;
21
- }>;
22
- /**
23
- * HTTP GET /info
24
- * Java method: org.openremote.model.system.StatusResource.getInfo
25
- */
26
- getInfo(options?: O): RestResponse<{
27
- [index: string]: any;
28
- }>;
29
- }
30
- export declare class DashboardResourceClient<O> {
31
- protected httpClient: HttpClient<O>;
32
- constructor(httpClient: HttpClient<O>);
33
- /**
34
- * HTTP POST /dashboard
35
- * Java method: org.openremote.model.dashboard.DashboardResource.create
36
- */
37
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
38
- /**
39
- * HTTP PUT /dashboard
40
- * Java method: org.openremote.model.dashboard.DashboardResource.update
41
- */
42
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
43
- /**
44
- * HTTP GET /dashboard/all/{realm}
45
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
46
- */
47
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
48
- /**
49
- * HTTP POST /dashboard/query
50
- * Java method: org.openremote.model.dashboard.DashboardResource.query
51
- */
52
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
53
- /**
54
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
55
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
56
- */
57
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
58
- /**
59
- * HTTP GET /dashboard/{realm}/{dashboardId}
60
- * Java method: org.openremote.model.dashboard.DashboardResource.get
61
- */
62
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
63
- }
64
- export declare class AssetModelResourceClient<O> {
65
- protected httpClient: HttpClient<O>;
66
- constructor(httpClient: HttpClient<O>);
67
- /**
68
- * HTTP GET /model/assetDescriptors
69
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
70
- */
71
- getAssetDescriptors(queryParams?: {
72
- parentId?: string;
73
- parentType?: string;
74
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
75
- /**
76
- * HTTP GET /model/assetInfo/{assetType}
77
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
78
- */
79
- getAssetInfo(assetType: string, queryParams?: {
80
- parentId?: string;
81
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
82
- /**
83
- * HTTP GET /model/assetInfos
84
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
85
- */
86
- getAssetInfos(queryParams?: {
87
- parentId?: string;
88
- parentType?: string;
89
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
90
- /**
91
- * HTTP GET /model/getValueDescriptorSchema
92
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
93
- */
94
- getValueDescriptorSchema(queryParams?: {
95
- name?: string;
96
- hash?: string;
97
- }, options?: O): RestResponse<any>;
98
- /**
99
- * HTTP GET /model/metaItemDescriptors
100
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
101
- */
102
- getMetaItemDescriptors(queryParams?: {
103
- parentId?: string;
104
- }, options?: O): RestResponse<{
105
- [index: string]: Model.MetaItemDescriptor;
106
- }>;
107
- /**
108
- * HTTP GET /model/valueDescriptors
109
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
110
- */
111
- getValueDescriptors(queryParams?: {
112
- parentId?: string;
113
- }, options?: O): RestResponse<{
114
- [index: string]: Model.ValueDescriptor;
115
- }>;
116
- }
117
- export declare class FlowResourceClient<O> {
118
- protected httpClient: HttpClient<O>;
119
- constructor(httpClient: HttpClient<O>);
120
- /**
121
- * HTTP GET /flow
122
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
123
- */
124
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
125
- /**
126
- * HTTP GET /flow/{name}
127
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
128
- */
129
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
130
- /**
131
- * HTTP GET /flow/{type}
132
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
133
- */
134
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
135
- }
136
- export declare class ProvisioningResourceClient<O> {
137
- protected httpClient: HttpClient<O>;
138
- constructor(httpClient: HttpClient<O>);
139
- /**
140
- * HTTP POST /provisioning
141
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
142
- */
143
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
144
- /**
145
- * HTTP GET /provisioning
146
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
147
- */
148
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
149
- /**
150
- * HTTP DELETE /provisioning/{id}
151
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
152
- */
153
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
154
- /**
155
- * HTTP PUT /provisioning/{id}
156
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
157
- */
158
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
159
- }
160
- export declare class AppResourceClient<O> {
12
+ export declare class NotificationResourceClient<O> {
161
13
  protected httpClient: HttpClient<O>;
162
14
  constructor(httpClient: HttpClient<O>);
163
15
  /**
164
- * HTTP GET /apps
165
- * Java method: org.openremote.model.apps.AppResource.getApps
166
- */
167
- getApps(options?: O): RestResponse<string[]>;
168
- /**
169
- * HTTP GET /apps/consoleConfig
170
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
16
+ * HTTP GET /notification
17
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
171
18
  */
172
- getConsoleConfig(options?: O): RestResponse<any>;
19
+ getNotifications(queryParams?: {
20
+ id?: number;
21
+ type?: string;
22
+ from?: number;
23
+ to?: number;
24
+ realmId?: string;
25
+ userId?: string;
26
+ assetId?: string;
27
+ }, options?: O): RestResponse<Model.SentNotification[]>;
173
28
  /**
174
- * HTTP GET /apps/info
175
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
29
+ * HTTP DELETE /notification
30
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
176
31
  */
177
- getAppInfos(options?: O): RestResponse<any>;
178
- }
179
- export declare class SyslogResourceClient<O> {
180
- protected httpClient: HttpClient<O>;
181
- constructor(httpClient: HttpClient<O>);
32
+ removeNotifications(queryParams?: {
33
+ id?: number;
34
+ type?: string;
35
+ from?: number;
36
+ to?: number;
37
+ realmId?: string;
38
+ userId?: string;
39
+ assetId?: string;
40
+ }, options?: O): RestResponse<void>;
182
41
  /**
183
- * HTTP GET /syslog/config
184
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
42
+ * HTTP POST /notification/alert
43
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
185
44
  */
186
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
45
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
187
46
  /**
188
- * HTTP PUT /syslog/config
189
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
47
+ * HTTP DELETE /notification/{notificationId}
48
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
190
49
  */
191
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
50
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
192
51
  /**
193
- * HTTP DELETE /syslog/event
194
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
52
+ * HTTP PUT /notification/{notificationId}/acknowledged
53
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
195
54
  */
196
- clearEvents(options?: O): RestResponse<void>;
55
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
56
+ targetId?: string;
57
+ }, options?: O): RestResponse<void>;
197
58
  /**
198
- * HTTP GET /syslog/event
199
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
59
+ * HTTP PUT /notification/{notificationId}/delivered
60
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
200
61
  */
201
- getEvents(queryParams?: {
202
- level?: Model.SyslogLevel;
203
- per_page?: number;
204
- page?: number;
205
- from?: number;
206
- to?: number;
207
- category?: Model.SyslogCategory[];
208
- subCategory?: string[];
209
- }, options?: O): RestResponse<any>;
62
+ notificationDelivered(notificationId: number, queryParams?: {
63
+ targetId?: string;
64
+ }, options?: O): RestResponse<void>;
210
65
  }
211
66
  export declare class ConfigurationResourceClient<O> {
212
67
  protected httpClient: HttpClient<O>;
@@ -234,39 +89,31 @@ export declare class ConfigurationResourceClient<O> {
234
89
  */
235
90
  getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
236
91
  }
237
- export declare class RealmResourceClient<O> {
92
+ export declare class AssetDatapointResourceClient<O> {
238
93
  protected httpClient: HttpClient<O>;
239
94
  constructor(httpClient: HttpClient<O>);
240
95
  /**
241
- * HTTP POST /realm
242
- * Java method: org.openremote.model.security.RealmResource.create
243
- */
244
- create(realm: Model.Realm, options?: O): RestResponse<void>;
245
- /**
246
- * HTTP GET /realm
247
- * Java method: org.openremote.model.security.RealmResource.getAll
248
- */
249
- getAll(options?: O): RestResponse<Model.Realm[]>;
250
- /**
251
- * HTTP GET /realm/accessible
252
- * Java method: org.openremote.model.security.RealmResource.getAccessible
253
- */
254
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
255
- /**
256
- * HTTP DELETE /realm/{name}
257
- * Java method: org.openremote.model.security.RealmResource.delete
96
+ * HTTP GET /asset/datapoint/export
97
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
258
98
  */
259
- delete(name: string, options?: O): RestResponse<void>;
99
+ getDatapointExport(queryParams?: {
100
+ attributeRefs?: string;
101
+ fromTimestamp?: number;
102
+ toTimestamp?: number;
103
+ }, options?: O): RestResponse<any>;
260
104
  /**
261
- * HTTP GET /realm/{name}
262
- * Java method: org.openremote.model.security.RealmResource.get
105
+ * HTTP GET /asset/datapoint/periods
106
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
263
107
  */
264
- get(name: string, options?: O): RestResponse<Model.Realm>;
108
+ getDatapointPeriod(queryParams?: {
109
+ assetId?: string;
110
+ attributeName?: string;
111
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
265
112
  /**
266
- * HTTP PUT /realm/{name}
267
- * Java method: org.openremote.model.security.RealmResource.update
113
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
114
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
268
115
  */
269
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
116
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
270
117
  }
271
118
  export declare class RulesResourceClient<O> {
272
119
  protected httpClient: HttpClient<O>;
@@ -376,138 +223,201 @@ export declare class RulesResourceClient<O> {
376
223
  */
377
224
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
378
225
  }
379
- export declare class AssetDatapointResourceClient<O> {
226
+ export declare class AppResourceClient<O> {
380
227
  protected httpClient: HttpClient<O>;
381
228
  constructor(httpClient: HttpClient<O>);
382
229
  /**
383
- * HTTP GET /asset/datapoint/export
384
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
230
+ * HTTP GET /apps
231
+ * Java method: org.openremote.model.apps.AppResource.getApps
385
232
  */
386
- getDatapointExport(queryParams?: {
387
- attributeRefs?: string;
388
- fromTimestamp?: number;
389
- toTimestamp?: number;
390
- }, options?: O): RestResponse<any>;
233
+ getApps(options?: O): RestResponse<string[]>;
391
234
  /**
392
- * HTTP GET /asset/datapoint/periods
393
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
235
+ * HTTP GET /apps/consoleConfig
236
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
394
237
  */
395
- getDatapointPeriod(queryParams?: {
396
- assetId?: string;
397
- attributeName?: string;
398
- }, options?: O): RestResponse<Model.DatapointPeriod>;
238
+ getConsoleConfig(options?: O): RestResponse<any>;
399
239
  /**
400
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
401
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
240
+ * HTTP GET /apps/info
241
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
402
242
  */
403
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
243
+ getAppInfos(options?: O): RestResponse<any>;
404
244
  }
405
- export declare class NotificationResourceClient<O> {
245
+ export declare class UserResourceClient<O> {
406
246
  protected httpClient: HttpClient<O>;
407
247
  constructor(httpClient: HttpClient<O>);
408
248
  /**
409
- * HTTP GET /notification
410
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
249
+ * HTTP PUT /user/locale
250
+ * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
411
251
  */
412
- getNotifications(queryParams?: {
413
- id?: number;
414
- type?: string;
415
- from?: number;
416
- to?: number;
417
- realmId?: string;
418
- userId?: string;
419
- assetId?: string;
420
- }, options?: O): RestResponse<Model.SentNotification[]>;
252
+ updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
421
253
  /**
422
- * HTTP DELETE /notification
423
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
254
+ * HTTP POST /user/query
255
+ * Java method: org.openremote.model.security.UserResource.query
424
256
  */
425
- removeNotifications(queryParams?: {
426
- id?: number;
427
- type?: string;
428
- from?: number;
429
- to?: number;
430
- realmId?: string;
431
- userId?: string;
432
- assetId?: string;
433
- }, options?: O): RestResponse<void>;
257
+ query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
434
258
  /**
435
- * HTTP POST /notification/alert
436
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
259
+ * HTTP PUT /user/request-password-reset
260
+ * Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
437
261
  */
438
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
262
+ requestPasswordResetCurrent(options?: O): RestResponse<void>;
439
263
  /**
440
- * HTTP DELETE /notification/{notificationId}
441
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
264
+ * HTTP PUT /user/reset-password
265
+ * Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
442
266
  */
443
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
267
+ updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
444
268
  /**
445
- * HTTP PUT /notification/{notificationId}/acknowledged
446
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
269
+ * HTTP PUT /user/update
270
+ * Java method: org.openremote.model.security.UserResource.updateCurrent
447
271
  */
448
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
449
- targetId?: string;
450
- }, options?: O): RestResponse<void>;
272
+ updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
451
273
  /**
452
- * HTTP PUT /notification/{notificationId}/delivered
453
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
274
+ * HTTP GET /user/user
275
+ * Java method: org.openremote.model.security.UserResource.getCurrent
454
276
  */
455
- notificationDelivered(notificationId: number, queryParams?: {
456
- targetId?: string;
457
- }, options?: O): RestResponse<void>;
277
+ getCurrent(options?: O): RestResponse<Model.User>;
278
+ /**
279
+ * HTTP GET /user/userRealmRoles
280
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
281
+ */
282
+ getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
283
+ /**
284
+ * HTTP GET /user/userRoles/{clientId}
285
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
286
+ */
287
+ getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
288
+ /**
289
+ * HTTP GET /user/{realm}/disconnect/{sessionID}
290
+ * Java method: org.openremote.model.security.UserResource.disconnectUserSession
291
+ */
292
+ disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
293
+ /**
294
+ * HTTP PUT /user/{realm}/request-password-reset/{userId}
295
+ * Java method: org.openremote.model.security.UserResource.requestPasswordReset
296
+ */
297
+ requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
298
+ /**
299
+ * HTTP PUT /user/{realm}/reset-password/{userId}
300
+ * Java method: org.openremote.model.security.UserResource.updatePassword
301
+ */
302
+ updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
303
+ /**
304
+ * HTTP GET /user/{realm}/reset-secret/{userId}
305
+ * Java method: org.openremote.model.security.UserResource.resetSecret
306
+ */
307
+ resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
308
+ /**
309
+ * HTTP PUT /user/{realm}/roles
310
+ * Java method: org.openremote.model.security.UserResource.updateRoles
311
+ */
312
+ updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
313
+ /**
314
+ * HTTP GET /user/{realm}/userRealmRoles/{userId}
315
+ * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
316
+ */
317
+ getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
318
+ /**
319
+ * HTTP PUT /user/{realm}/userRealmRoles/{userId}
320
+ * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
321
+ */
322
+ updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
323
+ /**
324
+ * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
325
+ * Java method: org.openremote.model.security.UserResource.getUserClientRoles
326
+ */
327
+ getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
328
+ /**
329
+ * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
330
+ * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
331
+ */
332
+ updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
333
+ /**
334
+ * HTTP GET /user/{realm}/userSessions/{userId}
335
+ * Java method: org.openremote.model.security.UserResource.getUserSessions
336
+ */
337
+ getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
338
+ /**
339
+ * HTTP POST /user/{realm}/users
340
+ * Java method: org.openremote.model.security.UserResource.create
341
+ */
342
+ create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
343
+ /**
344
+ * HTTP PUT /user/{realm}/users
345
+ * Java method: org.openremote.model.security.UserResource.update
346
+ */
347
+ update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
348
+ /**
349
+ * HTTP DELETE /user/{realm}/users/{userId}
350
+ * Java method: org.openremote.model.security.UserResource.delete
351
+ */
352
+ delete(realm: string, userId: string, options?: O): RestResponse<void>;
353
+ /**
354
+ * HTTP GET /user/{realm}/{clientId}/roles
355
+ * Java method: org.openremote.model.security.UserResource.getClientRoles
356
+ */
357
+ getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
358
+ /**
359
+ * HTTP PUT /user/{realm}/{clientId}/roles
360
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
361
+ */
362
+ updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
363
+ /**
364
+ * HTTP GET /user/{realm}/{userId}
365
+ * Java method: org.openremote.model.security.UserResource.get
366
+ */
367
+ get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
458
368
  }
459
- export declare class AlarmResourceClient<O> {
369
+ export declare class MapResourceClient<O> {
460
370
  protected httpClient: HttpClient<O>;
461
371
  constructor(httpClient: HttpClient<O>);
462
372
  /**
463
- * HTTP POST /alarm
464
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
465
- */
466
- createAlarm(alarm: Model.Alarm, queryParams?: {
467
- assetIds?: string[];
468
- }, options?: O): RestResponse<Model.SentAlarm>;
469
- /**
470
- * HTTP GET /alarm
471
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
373
+ * HTTP GET /map
374
+ * Java method: org.openremote.model.map.MapResource.getSettings
472
375
  */
473
- getAlarms(queryParams?: {
474
- realm?: string;
475
- status?: Model.AlarmStatus;
476
- assetId?: string;
477
- assigneeId?: string;
478
- }, options?: O): RestResponse<Model.SentAlarm[]>;
376
+ getSettings(options?: O): RestResponse<{
377
+ [id: string]: unknown;
378
+ }>;
479
379
  /**
480
- * HTTP DELETE /alarm
481
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
380
+ * HTTP PUT /map
381
+ * Java method: org.openremote.model.map.MapResource.saveSettings
482
382
  */
483
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
383
+ saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
384
+ [id: string]: unknown;
385
+ }>;
484
386
  /**
485
- * HTTP PUT /alarm/assets
486
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
387
+ * HTTP DELETE /map/deleteMap
388
+ * Java method: org.openremote.model.map.MapResource.deleteMap
487
389
  */
488
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
390
+ deleteMap(options?: O): RestResponse<{
391
+ [id: string]: unknown;
392
+ }>;
489
393
  /**
490
- * HTTP GET /alarm/{alarmId}
491
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
394
+ * HTTP GET /map/getCustomMapInfo
395
+ * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
492
396
  */
493
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
397
+ getCustomMapInfo(options?: O): RestResponse<{
398
+ [id: string]: unknown;
399
+ }>;
494
400
  /**
495
- * HTTP DELETE /alarm/{alarmId}
496
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
401
+ * HTTP GET /map/js
402
+ * Java method: org.openremote.model.map.MapResource.getSettingsJs
497
403
  */
498
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
404
+ getSettingsJs(options?: O): RestResponse<{
405
+ [id: string]: unknown;
406
+ }>;
499
407
  /**
500
- * HTTP PUT /alarm/{alarmId}
501
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
408
+ * HTTP GET /map/tile/{zoom}/{column}/{row}
409
+ * Java method: org.openremote.model.map.MapResource.getTile
502
410
  */
503
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
411
+ getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
504
412
  /**
505
- * HTTP GET /alarm/{alarmId}/assets
506
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
413
+ * HTTP POST /map/upload
414
+ * Java method: org.openremote.model.map.MapResource.uploadMap
507
415
  */
508
- getAssetLinks(alarmId: number, queryParams?: {
509
- realm?: string;
510
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
416
+ uploadMap(queryParams?: {
417
+ filename?: string;
418
+ }, options?: O): RestResponse<{
419
+ [id: string]: unknown;
420
+ }>;
511
421
  }
512
422
  export declare class ExternalServiceResourceClient<O> {
513
423
  protected httpClient: HttpClient<O>;
@@ -564,34 +474,48 @@ export declare class ExternalServiceResourceClient<O> {
564
474
  */
565
475
  heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
566
476
  }
567
- export declare class GatewayServiceResourceClient<O> {
477
+ export declare class RealmResourceClient<O> {
568
478
  protected httpClient: HttpClient<O>;
569
479
  constructor(httpClient: HttpClient<O>);
570
480
  /**
571
- * HTTP POST /gateway/tunnel
572
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
481
+ * HTTP POST /realm
482
+ * Java method: org.openremote.model.security.RealmResource.create
573
483
  */
574
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
484
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
575
485
  /**
576
- * HTTP DELETE /gateway/tunnel
577
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
486
+ * HTTP GET /realm
487
+ * Java method: org.openremote.model.security.RealmResource.getAll
578
488
  */
579
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
489
+ getAll(options?: O): RestResponse<Model.Realm[]>;
580
490
  /**
581
- * HTTP GET /gateway/tunnel/{realm}
582
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
491
+ * HTTP GET /realm/accessible
492
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
583
493
  */
584
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
494
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
585
495
  /**
586
- * HTTP GET /gateway/tunnel/{realm}/{id}
587
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
496
+ * HTTP DELETE /realm/{name}
497
+ * Java method: org.openremote.model.security.RealmResource.delete
588
498
  */
589
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
499
+ delete(name: string, options?: O): RestResponse<void>;
590
500
  /**
591
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
592
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
501
+ * HTTP GET /realm/{name}
502
+ * Java method: org.openremote.model.security.RealmResource.get
593
503
  */
594
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
504
+ get(name: string, options?: O): RestResponse<Model.Realm>;
505
+ /**
506
+ * HTTP PUT /realm/{name}
507
+ * Java method: org.openremote.model.security.RealmResource.update
508
+ */
509
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
510
+ }
511
+ export declare class ConsoleResourceClient<O> {
512
+ protected httpClient: HttpClient<O>;
513
+ constructor(httpClient: HttpClient<O>);
514
+ /**
515
+ * HTTP POST /console/register
516
+ * Java method: org.openremote.model.console.ConsoleResource.register
517
+ */
518
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
595
519
  }
596
520
  export declare class AssetPredictedDatapointResourceClient<O> {
597
521
  protected httpClient: HttpClient<O>;
@@ -607,32 +531,6 @@ export declare class AssetPredictedDatapointResourceClient<O> {
607
531
  */
608
532
  writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
609
533
  }
610
- export declare class AgentResourceClient<O> {
611
- protected httpClient: HttpClient<O>;
612
- constructor(httpClient: HttpClient<O>);
613
- /**
614
- * HTTP GET /agent/assetDiscovery/{agentId}
615
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
616
- */
617
- doProtocolAssetDiscovery(agentId: string, queryParams?: {
618
- realm?: string;
619
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
620
- /**
621
- * HTTP POST /agent/assetImport/{agentId}
622
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
623
- */
624
- doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
625
- realm?: string;
626
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
627
- /**
628
- * HTTP GET /agent/instanceDiscovery/{agentType}
629
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
630
- */
631
- doProtocolInstanceDiscovery(agentType: string, queryParams?: {
632
- parentId?: string;
633
- realm?: string;
634
- }, options?: O): RestResponse<Model.Agent[]>;
635
- }
636
534
  export declare class AssetResourceClient<O> {
637
535
  protected httpClient: HttpClient<O>;
638
536
  constructor(httpClient: HttpClient<O>);
@@ -742,129 +640,206 @@ export declare class AssetResourceClient<O> {
742
640
  assetIds?: string[];
743
641
  }, options?: O): RestResponse<void>;
744
642
  }
745
- export declare class UserResourceClient<O> {
643
+ export declare class FlowResourceClient<O> {
746
644
  protected httpClient: HttpClient<O>;
747
645
  constructor(httpClient: HttpClient<O>);
748
646
  /**
749
- * HTTP PUT /user/locale
750
- * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
647
+ * HTTP GET /flow
648
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
751
649
  */
752
- updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
650
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
753
651
  /**
754
- * HTTP POST /user/query
755
- * Java method: org.openremote.model.security.UserResource.query
652
+ * HTTP GET /flow/{name}
653
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
756
654
  */
757
- query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
655
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
758
656
  /**
759
- * HTTP PUT /user/request-password-reset
760
- * Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
657
+ * HTTP GET /flow/{type}
658
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
761
659
  */
762
- requestPasswordResetCurrent(options?: O): RestResponse<void>;
660
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
661
+ }
662
+ export declare class StatusResourceClient<O> {
663
+ protected httpClient: HttpClient<O>;
664
+ constructor(httpClient: HttpClient<O>);
763
665
  /**
764
- * HTTP PUT /user/reset-password
765
- * Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
666
+ * HTTP GET /health
667
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
766
668
  */
767
- updatePasswordCurrent(credential: Model.Credential, options?: O): RestResponse<void>;
669
+ getHealthStatus(options?: O): RestResponse<{
670
+ [index: string]: any;
671
+ }>;
768
672
  /**
769
- * HTTP PUT /user/update
770
- * Java method: org.openremote.model.security.UserResource.updateCurrent
673
+ * HTTP GET /info
674
+ * Java method: org.openremote.model.system.StatusResource.getInfo
771
675
  */
772
- updateCurrent(user: Model.User, options?: O): RestResponse<Model.User>;
676
+ getInfo(options?: O): RestResponse<{
677
+ [index: string]: any;
678
+ }>;
679
+ }
680
+ export declare class AssetModelResourceClient<O> {
681
+ protected httpClient: HttpClient<O>;
682
+ constructor(httpClient: HttpClient<O>);
773
683
  /**
774
- * HTTP GET /user/user
775
- * Java method: org.openremote.model.security.UserResource.getCurrent
684
+ * HTTP GET /model/assetDescriptors
685
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
776
686
  */
777
- getCurrent(options?: O): RestResponse<Model.User>;
687
+ getAssetDescriptors(queryParams?: {
688
+ parentId?: string;
689
+ parentType?: string;
690
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
778
691
  /**
779
- * HTTP GET /user/userRealmRoles
780
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
692
+ * HTTP GET /model/assetInfo/{assetType}
693
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
781
694
  */
782
- getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
695
+ getAssetInfo(assetType: string, queryParams?: {
696
+ parentId?: string;
697
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
783
698
  /**
784
- * HTTP GET /user/userRoles/{clientId}
785
- * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
699
+ * HTTP GET /model/assetInfos
700
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
786
701
  */
787
- getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
702
+ getAssetInfos(queryParams?: {
703
+ parentId?: string;
704
+ parentType?: string;
705
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
788
706
  /**
789
- * HTTP GET /user/{realm}/disconnect/{sessionID}
790
- * Java method: org.openremote.model.security.UserResource.disconnectUserSession
707
+ * HTTP GET /model/getValueDescriptorSchema
708
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
791
709
  */
792
- disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
710
+ getValueDescriptorSchema(queryParams?: {
711
+ name?: string;
712
+ hash?: string;
713
+ }, options?: O): RestResponse<any>;
793
714
  /**
794
- * HTTP PUT /user/{realm}/request-password-reset/{userId}
795
- * Java method: org.openremote.model.security.UserResource.requestPasswordReset
715
+ * HTTP GET /model/metaItemDescriptors
716
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
796
717
  */
797
- requestPasswordReset(realm: string, userId: string, options?: O): RestResponse<void>;
718
+ getMetaItemDescriptors(queryParams?: {
719
+ parentId?: string;
720
+ }, options?: O): RestResponse<{
721
+ [index: string]: Model.MetaItemDescriptor;
722
+ }>;
798
723
  /**
799
- * HTTP PUT /user/{realm}/reset-password/{userId}
800
- * Java method: org.openremote.model.security.UserResource.updatePassword
724
+ * HTTP GET /model/valueDescriptors
725
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
801
726
  */
802
- updatePassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
727
+ getValueDescriptors(queryParams?: {
728
+ parentId?: string;
729
+ }, options?: O): RestResponse<{
730
+ [index: string]: Model.ValueDescriptor;
731
+ }>;
732
+ }
733
+ export declare class SyslogResourceClient<O> {
734
+ protected httpClient: HttpClient<O>;
735
+ constructor(httpClient: HttpClient<O>);
803
736
  /**
804
- * HTTP GET /user/{realm}/reset-secret/{userId}
805
- * Java method: org.openremote.model.security.UserResource.resetSecret
737
+ * HTTP GET /syslog/config
738
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
806
739
  */
807
- resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
740
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
808
741
  /**
809
- * HTTP PUT /user/{realm}/roles
810
- * Java method: org.openremote.model.security.UserResource.updateRoles
742
+ * HTTP PUT /syslog/config
743
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
811
744
  */
812
- updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
745
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
813
746
  /**
814
- * HTTP GET /user/{realm}/userRealmRoles/{userId}
815
- * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
747
+ * HTTP DELETE /syslog/event
748
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
816
749
  */
817
- getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
750
+ clearEvents(options?: O): RestResponse<void>;
818
751
  /**
819
- * HTTP PUT /user/{realm}/userRealmRoles/{userId}
820
- * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
752
+ * HTTP GET /syslog/event
753
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
821
754
  */
822
- updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
755
+ getEvents(queryParams?: {
756
+ level?: Model.SyslogLevel;
757
+ per_page?: number;
758
+ page?: number;
759
+ from?: number;
760
+ to?: number;
761
+ category?: Model.SyslogCategory[];
762
+ subCategory?: string[];
763
+ }, options?: O): RestResponse<any>;
764
+ }
765
+ export declare class ProvisioningResourceClient<O> {
766
+ protected httpClient: HttpClient<O>;
767
+ constructor(httpClient: HttpClient<O>);
823
768
  /**
824
- * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
825
- * Java method: org.openremote.model.security.UserResource.getUserClientRoles
769
+ * HTTP POST /provisioning
770
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
826
771
  */
827
- getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
772
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
828
773
  /**
829
- * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
830
- * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
774
+ * HTTP GET /provisioning
775
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
831
776
  */
832
- updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
777
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
833
778
  /**
834
- * HTTP GET /user/{realm}/userSessions/{userId}
835
- * Java method: org.openremote.model.security.UserResource.getUserSessions
779
+ * HTTP DELETE /provisioning/{id}
780
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
781
+ */
782
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
783
+ /**
784
+ * HTTP PUT /provisioning/{id}
785
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
786
+ */
787
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
788
+ }
789
+ export declare class AgentResourceClient<O> {
790
+ protected httpClient: HttpClient<O>;
791
+ constructor(httpClient: HttpClient<O>);
792
+ /**
793
+ * HTTP GET /agent/assetDiscovery/{agentId}
794
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
795
+ */
796
+ doProtocolAssetDiscovery(agentId: string, queryParams?: {
797
+ realm?: string;
798
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
799
+ /**
800
+ * HTTP POST /agent/assetImport/{agentId}
801
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
836
802
  */
837
- getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
803
+ doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
804
+ realm?: string;
805
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
838
806
  /**
839
- * HTTP POST /user/{realm}/users
840
- * Java method: org.openremote.model.security.UserResource.create
807
+ * HTTP GET /agent/instanceDiscovery/{agentType}
808
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
841
809
  */
842
- create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
810
+ doProtocolInstanceDiscovery(agentType: string, queryParams?: {
811
+ parentId?: string;
812
+ realm?: string;
813
+ }, options?: O): RestResponse<Model.Agent[]>;
814
+ }
815
+ export declare class GatewayServiceResourceClient<O> {
816
+ protected httpClient: HttpClient<O>;
817
+ constructor(httpClient: HttpClient<O>);
843
818
  /**
844
- * HTTP PUT /user/{realm}/users
845
- * Java method: org.openremote.model.security.UserResource.update
819
+ * HTTP POST /gateway/tunnel
820
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
846
821
  */
847
- update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
822
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
848
823
  /**
849
- * HTTP DELETE /user/{realm}/users/{userId}
850
- * Java method: org.openremote.model.security.UserResource.delete
824
+ * HTTP DELETE /gateway/tunnel
825
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
851
826
  */
852
- delete(realm: string, userId: string, options?: O): RestResponse<void>;
827
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
853
828
  /**
854
- * HTTP GET /user/{realm}/{clientId}/roles
855
- * Java method: org.openremote.model.security.UserResource.getClientRoles
829
+ * HTTP GET /gateway/tunnel/{realm}
830
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
856
831
  */
857
- getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
832
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
858
833
  /**
859
- * HTTP PUT /user/{realm}/{clientId}/roles
860
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
834
+ * HTTP GET /gateway/tunnel/{realm}/{id}
835
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
861
836
  */
862
- updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
837
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
863
838
  /**
864
- * HTTP GET /user/{realm}/{userId}
865
- * Java method: org.openremote.model.security.UserResource.get
839
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
840
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
866
841
  */
867
- get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
842
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
868
843
  }
869
844
  export declare class GatewayClientResourceClient<O> {
870
845
  protected httpClient: HttpClient<O>;
@@ -902,115 +877,140 @@ export declare class GatewayClientResourceClient<O> {
902
877
  */
903
878
  getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
904
879
  }
905
- export declare class MapResourceClient<O> {
880
+ export declare class AlarmResourceClient<O> {
906
881
  protected httpClient: HttpClient<O>;
907
882
  constructor(httpClient: HttpClient<O>);
908
883
  /**
909
- * HTTP GET /map
910
- * Java method: org.openremote.model.map.MapResource.getSettings
884
+ * HTTP POST /alarm
885
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
911
886
  */
912
- getSettings(options?: O): RestResponse<{
913
- [id: string]: unknown;
914
- }>;
887
+ createAlarm(alarm: Model.Alarm, queryParams?: {
888
+ assetIds?: string[];
889
+ }, options?: O): RestResponse<Model.SentAlarm>;
915
890
  /**
916
- * HTTP PUT /map
917
- * Java method: org.openremote.model.map.MapResource.saveSettings
891
+ * HTTP GET /alarm
892
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
918
893
  */
919
- saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
920
- [id: string]: unknown;
921
- }>;
894
+ getAlarms(queryParams?: {
895
+ realm?: string;
896
+ status?: Model.AlarmStatus;
897
+ assetId?: string;
898
+ assigneeId?: string;
899
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
922
900
  /**
923
- * HTTP DELETE /map/deleteMap
924
- * Java method: org.openremote.model.map.MapResource.deleteMap
901
+ * HTTP DELETE /alarm
902
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
925
903
  */
926
- deleteMap(options?: O): RestResponse<{
927
- [id: string]: unknown;
928
- }>;
904
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
929
905
  /**
930
- * HTTP GET /map/getCustomMapInfo
931
- * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
906
+ * HTTP PUT /alarm/assets
907
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
932
908
  */
933
- getCustomMapInfo(options?: O): RestResponse<{
934
- [id: string]: unknown;
935
- }>;
909
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
936
910
  /**
937
- * HTTP GET /map/js
938
- * Java method: org.openremote.model.map.MapResource.getSettingsJs
911
+ * HTTP GET /alarm/{alarmId}
912
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
939
913
  */
940
- getSettingsJs(options?: O): RestResponse<{
941
- [id: string]: unknown;
942
- }>;
914
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
943
915
  /**
944
- * HTTP GET /map/tile/{zoom}/{column}/{row}
945
- * Java method: org.openremote.model.map.MapResource.getTile
916
+ * HTTP DELETE /alarm/{alarmId}
917
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
946
918
  */
947
- getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
919
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
948
920
  /**
949
- * HTTP POST /map/upload
950
- * Java method: org.openremote.model.map.MapResource.uploadMap
921
+ * HTTP PUT /alarm/{alarmId}
922
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
951
923
  */
952
- uploadMap(queryParams?: {
953
- filename?: string;
954
- }, options?: O): RestResponse<{
955
- [id: string]: unknown;
956
- }>;
924
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
925
+ /**
926
+ * HTTP GET /alarm/{alarmId}/assets
927
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
928
+ */
929
+ getAssetLinks(alarmId: number, queryParams?: {
930
+ realm?: string;
931
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
957
932
  }
958
- export declare class ConsoleResourceClient<O> {
933
+ export declare class DashboardResourceClient<O> {
959
934
  protected httpClient: HttpClient<O>;
960
935
  constructor(httpClient: HttpClient<O>);
961
936
  /**
962
- * HTTP POST /console/register
963
- * Java method: org.openremote.model.console.ConsoleResource.register
937
+ * HTTP POST /dashboard
938
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
964
939
  */
965
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
940
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
941
+ /**
942
+ * HTTP PUT /dashboard
943
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
944
+ */
945
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
946
+ /**
947
+ * HTTP GET /dashboard/all/{realm}
948
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
949
+ */
950
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
951
+ /**
952
+ * HTTP POST /dashboard/query
953
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
954
+ */
955
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
956
+ /**
957
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
958
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
959
+ */
960
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
961
+ /**
962
+ * HTTP GET /dashboard/{realm}/{dashboardId}
963
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
964
+ */
965
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
966
966
  }
967
967
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
968
968
  export declare class ApiClient {
969
- protected _statusResource: AxiosStatusResourceClient;
970
- protected _dashboardResource: AxiosDashboardResourceClient;
971
- protected _assetModelResource: AxiosAssetModelResourceClient;
972
- protected _flowResource: AxiosFlowResourceClient;
973
- protected _provisioningResource: AxiosProvisioningResourceClient;
974
- protected _appResource: AxiosAppResourceClient;
975
- protected _syslogResource: AxiosSyslogResourceClient;
969
+ protected _notificationResource: AxiosNotificationResourceClient;
976
970
  protected _configurationResource: AxiosConfigurationResourceClient;
977
- protected _realmResource: AxiosRealmResourceClient;
978
- protected _rulesResource: AxiosRulesResourceClient;
979
971
  protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
980
- protected _notificationResource: AxiosNotificationResourceClient;
981
- protected _alarmResource: AxiosAlarmResourceClient;
972
+ protected _rulesResource: AxiosRulesResourceClient;
973
+ protected _appResource: AxiosAppResourceClient;
974
+ protected _userResource: AxiosUserResourceClient;
975
+ protected _mapResource: AxiosMapResourceClient;
982
976
  protected _externalServiceResource: AxiosExternalServiceResourceClient;
983
- protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
977
+ protected _realmResource: AxiosRealmResourceClient;
978
+ protected _consoleResource: AxiosConsoleResourceClient;
984
979
  protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
985
- protected _agentResource: AxiosAgentResourceClient;
986
980
  protected _assetResource: AxiosAssetResourceClient;
987
- protected _userResource: AxiosUserResourceClient;
981
+ protected _flowResource: AxiosFlowResourceClient;
982
+ protected _statusResource: AxiosStatusResourceClient;
983
+ protected _assetModelResource: AxiosAssetModelResourceClient;
984
+ protected _syslogResource: AxiosSyslogResourceClient;
985
+ protected _provisioningResource: AxiosProvisioningResourceClient;
986
+ protected _agentResource: AxiosAgentResourceClient;
987
+ protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
988
988
  protected _gatewayClientResource: AxiosGatewayClientResourceClient;
989
- protected _mapResource: AxiosMapResourceClient;
990
- protected _consoleResource: AxiosConsoleResourceClient;
989
+ protected _alarmResource: AxiosAlarmResourceClient;
990
+ protected _dashboardResource: AxiosDashboardResourceClient;
991
991
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
992
- get StatusResource(): AxiosStatusResourceClient;
993
- get DashboardResource(): AxiosDashboardResourceClient;
994
- get AssetModelResource(): AxiosAssetModelResourceClient;
995
- get FlowResource(): AxiosFlowResourceClient;
996
- get ProvisioningResource(): AxiosProvisioningResourceClient;
997
- get AppResource(): AxiosAppResourceClient;
998
- get SyslogResource(): AxiosSyslogResourceClient;
992
+ get NotificationResource(): AxiosNotificationResourceClient;
999
993
  get ConfigurationResource(): AxiosConfigurationResourceClient;
1000
- get RealmResource(): AxiosRealmResourceClient;
1001
- get RulesResource(): AxiosRulesResourceClient;
1002
994
  get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
1003
- get NotificationResource(): AxiosNotificationResourceClient;
1004
- get AlarmResource(): AxiosAlarmResourceClient;
995
+ get RulesResource(): AxiosRulesResourceClient;
996
+ get AppResource(): AxiosAppResourceClient;
997
+ get UserResource(): AxiosUserResourceClient;
998
+ get MapResource(): AxiosMapResourceClient;
1005
999
  get ExternalServiceResource(): AxiosExternalServiceResourceClient;
1006
- get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1000
+ get RealmResource(): AxiosRealmResourceClient;
1001
+ get ConsoleResource(): AxiosConsoleResourceClient;
1007
1002
  get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
1008
- get AgentResource(): AxiosAgentResourceClient;
1009
1003
  get AssetResource(): AxiosAssetResourceClient;
1010
- get UserResource(): AxiosUserResourceClient;
1004
+ get FlowResource(): AxiosFlowResourceClient;
1005
+ get StatusResource(): AxiosStatusResourceClient;
1006
+ get AssetModelResource(): AxiosAssetModelResourceClient;
1007
+ get SyslogResource(): AxiosSyslogResourceClient;
1008
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
1009
+ get AgentResource(): AxiosAgentResourceClient;
1010
+ get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
1011
1011
  get GatewayClientResource(): AxiosGatewayClientResourceClient;
1012
- get MapResource(): AxiosMapResourceClient;
1013
- get ConsoleResource(): AxiosConsoleResourceClient;
1012
+ get AlarmResource(): AxiosAlarmResourceClient;
1013
+ get DashboardResource(): AxiosDashboardResourceClient;
1014
1014
  }
1015
1015
  import * as Axios from "axios";
1016
1016
  declare module "axios" {
@@ -1018,70 +1018,70 @@ declare module "axios" {
1018
1018
  data: R;
1019
1019
  }
1020
1020
  }
1021
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1021
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1022
1022
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1023
1023
  }
1024
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1024
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1025
1025
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1026
1026
  }
1027
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1027
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1028
1028
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1029
1029
  }
1030
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1030
+ export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1031
1031
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1032
1032
  }
1033
- export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1033
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1034
1034
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1035
1035
  }
1036
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
1036
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1037
1037
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1038
1038
  }
1039
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1039
+ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1040
1040
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1041
1041
  }
1042
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
1042
+ export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1043
1043
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1044
1044
  }
1045
1045
  export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
1046
1046
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1047
1047
  }
1048
- export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
1048
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1049
1049
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1050
1050
  }
1051
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
1051
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1052
1052
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1053
1053
  }
1054
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
1054
+ export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1055
1055
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1056
1056
  }
1057
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1057
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
1058
1058
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1059
1059
  }
1060
- export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
1060
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
1061
1061
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1062
1062
  }
1063
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1063
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
1064
1064
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1065
1065
  }
1066
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
1066
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
1067
1067
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1068
1068
  }
1069
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1069
+ export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
1070
1070
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1071
1071
  }
1072
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
1072
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
1073
1073
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1074
1074
  }
1075
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
1075
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
1076
1076
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1077
1077
  }
1078
1078
  export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
1079
1079
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1080
1080
  }
1081
- export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
1081
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
1082
1082
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1083
1083
  }
1084
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
1084
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
1085
1085
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
1086
1086
  }
1087
1087
  //# sourceMappingURL=restclient.d.ts.map