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

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