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

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,459 +9,481 @@ export interface HttpClient<O> {
9
9
  options?: O;
10
10
  }): RestResponse<R>;
11
11
  }
12
- export declare class AssetModelResourceClient<O> {
12
+ export declare class MapResourceClient<O> {
13
13
  protected httpClient: HttpClient<O>;
14
14
  constructor(httpClient: HttpClient<O>);
15
15
  /**
16
- * HTTP GET /model/assetDescriptors
17
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
18
- */
19
- getAssetDescriptors(queryParams?: {
20
- parentId?: string;
21
- parentType?: string;
22
- }, options?: O): RestResponse<Model.AssetDescriptor[]>;
23
- /**
24
- * HTTP GET /model/assetInfo/{assetType}
25
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
16
+ * HTTP GET /map
17
+ * Java method: org.openremote.model.map.MapResource.getSettings
26
18
  */
27
- getAssetInfo(assetType: string, queryParams?: {
28
- parentId?: string;
29
- }, options?: O): RestResponse<Model.AssetTypeInfo>;
19
+ getSettings(options?: O): RestResponse<{
20
+ [id: string]: unknown;
21
+ }>;
30
22
  /**
31
- * HTTP GET /model/assetInfos
32
- * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
23
+ * HTTP PUT /map
24
+ * Java method: org.openremote.model.map.MapResource.saveSettings
33
25
  */
34
- getAssetInfos(queryParams?: {
35
- parentId?: string;
36
- parentType?: string;
37
- }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
26
+ saveSettings(mapConfig: {
27
+ [index: string]: Model.MapRealmConfig;
28
+ }, options?: O): RestResponse<any>;
38
29
  /**
39
- * HTTP GET /model/metaItemDescriptors
40
- * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
30
+ * HTTP GET /map/js
31
+ * Java method: org.openremote.model.map.MapResource.getSettingsJs
41
32
  */
42
- getMetaItemDescriptors(queryParams?: {
43
- parentId?: string;
44
- }, options?: O): RestResponse<{
45
- [index: string]: Model.MetaItemDescriptor;
33
+ getSettingsJs(options?: O): RestResponse<{
34
+ [id: string]: unknown;
46
35
  }>;
47
36
  /**
48
- * HTTP GET /model/valueDescriptors
49
- * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
37
+ * HTTP GET /map/tile/{zoom}/{column}/{row}
38
+ * Java method: org.openremote.model.map.MapResource.getTile
50
39
  */
51
- getValueDescriptors(queryParams?: {
52
- parentId?: string;
53
- }, options?: O): RestResponse<{
54
- [index: string]: Model.ValueDescriptor;
55
- }>;
40
+ getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
56
41
  }
57
- export declare class RealmResourceClient<O> {
42
+ export declare class AppResourceClient<O> {
58
43
  protected httpClient: HttpClient<O>;
59
44
  constructor(httpClient: HttpClient<O>);
60
45
  /**
61
- * HTTP POST /realm
62
- * Java method: org.openremote.model.security.RealmResource.create
63
- */
64
- create(realm: Model.Realm, options?: O): RestResponse<void>;
65
- /**
66
- * HTTP GET /realm
67
- * Java method: org.openremote.model.security.RealmResource.getAll
46
+ * HTTP GET /apps
47
+ * Java method: org.openremote.model.apps.AppResource.getApps
68
48
  */
69
- getAll(options?: O): RestResponse<Model.Realm[]>;
49
+ getApps(options?: O): RestResponse<string[]>;
70
50
  /**
71
- * HTTP GET /realm/accessible
72
- * Java method: org.openremote.model.security.RealmResource.getAccessible
51
+ * HTTP GET /apps/consoleConfig
52
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
73
53
  */
74
- getAccessible(options?: O): RestResponse<Model.Realm[]>;
54
+ getConsoleConfig(options?: O): RestResponse<any>;
75
55
  /**
76
- * HTTP DELETE /realm/{name}
77
- * Java method: org.openremote.model.security.RealmResource.delete
56
+ * HTTP GET /apps/info
57
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
78
58
  */
79
- delete(name: string, options?: O): RestResponse<void>;
59
+ getAppInfos(options?: O): RestResponse<any>;
60
+ }
61
+ export declare class AssetPredictedDatapointResourceClient<O> {
62
+ protected httpClient: HttpClient<O>;
63
+ constructor(httpClient: HttpClient<O>);
80
64
  /**
81
- * HTTP GET /realm/{name}
82
- * Java method: org.openremote.model.security.RealmResource.get
65
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
66
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
83
67
  */
84
- get(name: string, options?: O): RestResponse<Model.Realm>;
68
+ getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
85
69
  /**
86
- * HTTP PUT /realm/{name}
87
- * Java method: org.openremote.model.security.RealmResource.update
70
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
71
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
88
72
  */
89
- update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
73
+ writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
90
74
  }
91
- export declare class ConsoleResourceClient<O> {
75
+ export declare class FlowResourceClient<O> {
92
76
  protected httpClient: HttpClient<O>;
93
77
  constructor(httpClient: HttpClient<O>);
94
78
  /**
95
- * HTTP POST /console/register
96
- * Java method: org.openremote.model.console.ConsoleResource.register
79
+ * HTTP GET /flow
80
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
97
81
  */
98
- register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
82
+ getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
83
+ /**
84
+ * HTTP GET /flow/{name}
85
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
86
+ */
87
+ getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
88
+ /**
89
+ * HTTP GET /flow/{type}
90
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
91
+ */
92
+ getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
99
93
  }
100
- export declare class ConfigurationResourceClient<O> {
94
+ export declare class DashboardResourceClient<O> {
101
95
  protected httpClient: HttpClient<O>;
102
96
  constructor(httpClient: HttpClient<O>);
103
97
  /**
104
- * HTTP GET /configuration/manager
105
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
98
+ * HTTP POST /dashboard
99
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
106
100
  */
107
- getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
101
+ create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
108
102
  /**
109
- * HTTP PUT /configuration/manager
110
- * Java method: org.openremote.model.manager.ConfigurationResource.update
103
+ * HTTP PUT /dashboard
104
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
111
105
  */
112
- update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
106
+ update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
113
107
  /**
114
- * HTTP POST /configuration/manager/file
115
- * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
108
+ * HTTP GET /dashboard/all/{realm}
109
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
116
110
  */
117
- fileUpload(fileInfo: Model.FileInfo, queryParams?: {
118
- path?: string;
119
- }, options?: O): RestResponse<string>;
111
+ getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
120
112
  /**
121
- * HTTP GET /configuration/manager/image/{filename: .+}
122
- * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
113
+ * HTTP POST /dashboard/query
114
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
123
115
  */
124
- getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
116
+ query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
117
+ /**
118
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
119
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
120
+ */
121
+ delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
122
+ /**
123
+ * HTTP GET /dashboard/{realm}/{dashboardId}
124
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
125
+ */
126
+ get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
125
127
  }
126
- export declare class AlarmResourceClient<O> {
128
+ export declare class UserResourceClient<O> {
127
129
  protected httpClient: HttpClient<O>;
128
130
  constructor(httpClient: HttpClient<O>);
129
131
  /**
130
- * HTTP POST /alarm
131
- * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
132
+ * HTTP PUT /user/locale
133
+ * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
132
134
  */
133
- createAlarm(alarm: Model.Alarm, queryParams?: {
134
- assetIds?: string[];
135
- }, options?: O): RestResponse<Model.SentAlarm>;
135
+ updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
136
136
  /**
137
- * HTTP GET /alarm
138
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
137
+ * HTTP POST /user/query
138
+ * Java method: org.openremote.model.security.UserResource.query
139
139
  */
140
- getAlarms(queryParams?: {
141
- realm?: string;
142
- status?: Model.AlarmStatus;
143
- assetId?: string;
144
- assigneeId?: string;
145
- }, options?: O): RestResponse<Model.SentAlarm[]>;
140
+ query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
146
141
  /**
147
- * HTTP DELETE /alarm
148
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
142
+ * HTTP GET /user/user
143
+ * Java method: org.openremote.model.security.UserResource.getCurrent
149
144
  */
150
- removeAlarms(ids: number[], options?: O): RestResponse<void>;
145
+ getCurrent(options?: O): RestResponse<Model.User>;
151
146
  /**
152
- * HTTP PUT /alarm/assets
153
- * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
147
+ * HTTP GET /user/userRealmRoles
148
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
154
149
  */
155
- setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
150
+ getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
156
151
  /**
157
- * HTTP GET /alarm/{alarmId}
158
- * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
152
+ * HTTP GET /user/userRoles
153
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
159
154
  */
160
- getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
155
+ getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
161
156
  /**
162
- * HTTP DELETE /alarm/{alarmId}
163
- * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
157
+ * HTTP GET /user/userRoles/{clientId}
158
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
164
159
  */
165
- removeAlarm(alarmId: number, options?: O): RestResponse<void>;
160
+ getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<Model.Role[]>;
166
161
  /**
167
- * HTTP PUT /alarm/{alarmId}
168
- * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
162
+ * HTTP GET /user/{realm}/disconnect/{sessionID}
163
+ * Java method: org.openremote.model.security.UserResource.disconnectUserSession
169
164
  */
170
- updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
165
+ disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
171
166
  /**
172
- * HTTP GET /alarm/{alarmId}/assets
173
- * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
167
+ * HTTP PUT /user/{realm}/reset-password/{userId}
168
+ * Java method: org.openremote.model.security.UserResource.resetPassword
174
169
  */
175
- getAssetLinks(alarmId: number, queryParams?: {
176
- realm?: string;
177
- }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
178
- }
179
- export declare class ProvisioningResourceClient<O> {
180
- protected httpClient: HttpClient<O>;
181
- constructor(httpClient: HttpClient<O>);
170
+ resetPassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
182
171
  /**
183
- * HTTP POST /provisioning
184
- * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
172
+ * HTTP GET /user/{realm}/reset-secret/{userId}
173
+ * Java method: org.openremote.model.security.UserResource.resetSecret
185
174
  */
186
- createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
175
+ resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
187
176
  /**
188
- * HTTP GET /provisioning
189
- * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
177
+ * HTTP GET /user/{realm}/roles
178
+ * Java method: org.openremote.model.security.UserResource.getRoles
190
179
  */
191
- getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
180
+ getRoles(realm: string, options?: O): RestResponse<Model.Role[]>;
192
181
  /**
193
- * HTTP DELETE /provisioning/{id}
194
- * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
182
+ * HTTP PUT /user/{realm}/roles
183
+ * Java method: org.openremote.model.security.UserResource.updateRoles
195
184
  */
196
- deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
185
+ updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
197
186
  /**
198
- * HTTP PUT /provisioning/{id}
199
- * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
187
+ * HTTP GET /user/{realm}/userRealmRoles/{userId}
188
+ * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
200
189
  */
201
- updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
202
- }
203
- export declare class GatewayClientResourceClient<O> {
204
- protected httpClient: HttpClient<O>;
205
- constructor(httpClient: HttpClient<O>);
190
+ getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<Model.Role[]>;
206
191
  /**
207
- * HTTP DELETE /gateway/connection
208
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
192
+ * HTTP PUT /user/{realm}/userRealmRoles/{userId}
193
+ * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
209
194
  */
210
- deleteConnections(queryParams?: {
211
- realm?: string[];
212
- }, options?: O): RestResponse<void>;
195
+ updateUserRealmRoles(realm: string, userId: string, roles: Model.Role[], options?: O): RestResponse<void>;
213
196
  /**
214
- * HTTP GET /gateway/connection
215
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
197
+ * HTTP GET /user/{realm}/userRoles/{userId}
198
+ * Java method: org.openremote.model.security.UserResource.getUserRoles
216
199
  */
217
- getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
200
+ getUserRoles(realm: string, userId: string, options?: O): RestResponse<Model.Role[]>;
218
201
  /**
219
- * HTTP DELETE /gateway/connection/{realm}
220
- * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
202
+ * HTTP PUT /user/{realm}/userRoles/{userId}
203
+ * Java method: org.openremote.model.security.UserResource.updateUserRoles
221
204
  */
222
- deleteConnection(realm: string, options?: O): RestResponse<void>;
205
+ updateUserRoles(realm: string, userId: string, roles: Model.Role[], options?: O): RestResponse<void>;
223
206
  /**
224
- * HTTP GET /gateway/connection/{realm}
225
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
207
+ * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
208
+ * Java method: org.openremote.model.security.UserResource.getUserClientRoles
226
209
  */
227
- getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
210
+ getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
228
211
  /**
229
- * HTTP PUT /gateway/connection/{realm}
230
- * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
212
+ * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
213
+ * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
231
214
  */
232
- setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
215
+ updateUserClientRoles(realm: string, userId: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
233
216
  /**
234
- * HTTP GET /gateway/status/{realm}
235
- * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
217
+ * HTTP GET /user/{realm}/userSessions/{userId}
218
+ * Java method: org.openremote.model.security.UserResource.getUserSessions
236
219
  */
237
- getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
238
- }
239
- export declare class AssetDatapointResourceClient<O> {
240
- protected httpClient: HttpClient<O>;
241
- constructor(httpClient: HttpClient<O>);
220
+ getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
242
221
  /**
243
- * HTTP GET /asset/datapoint/export
244
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
222
+ * HTTP POST /user/{realm}/users
223
+ * Java method: org.openremote.model.security.UserResource.create
245
224
  */
246
- getDatapointExport(queryParams?: {
247
- attributeRefs?: string;
248
- fromTimestamp?: number;
249
- toTimestamp?: number;
250
- }, options?: O): RestResponse<any>;
225
+ create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
251
226
  /**
252
- * HTTP GET /asset/datapoint/periods
253
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
227
+ * HTTP PUT /user/{realm}/users
228
+ * Java method: org.openremote.model.security.UserResource.update
254
229
  */
255
- getDatapointPeriod(queryParams?: {
256
- assetId?: string;
257
- attributeName?: string;
258
- }, options?: O): RestResponse<Model.DatapointPeriod>;
230
+ update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
259
231
  /**
260
- * HTTP POST /asset/datapoint/{assetId}/{attributeName}
261
- * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
232
+ * HTTP DELETE /user/{realm}/users/{userId}
233
+ * Java method: org.openremote.model.security.UserResource.delete
262
234
  */
263
- getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
264
- }
265
- export declare class AppResourceClient<O> {
266
- protected httpClient: HttpClient<O>;
267
- constructor(httpClient: HttpClient<O>);
235
+ delete(realm: string, userId: string, options?: O): RestResponse<void>;
268
236
  /**
269
- * HTTP GET /apps
270
- * Java method: org.openremote.model.apps.AppResource.getApps
237
+ * HTTP GET /user/{realm}/{clientId}/roles
238
+ * Java method: org.openremote.model.security.UserResource.getClientRoles
271
239
  */
272
- getApps(options?: O): RestResponse<string[]>;
240
+ getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
273
241
  /**
274
- * HTTP GET /apps/consoleConfig
275
- * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
242
+ * HTTP PUT /user/{realm}/{clientId}/roles
243
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
276
244
  */
277
- getConsoleConfig(options?: O): RestResponse<any>;
245
+ updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
278
246
  /**
279
- * HTTP GET /apps/info
280
- * Java method: org.openremote.model.apps.AppResource.getAppInfos
247
+ * HTTP GET /user/{realm}/{userId}
248
+ * Java method: org.openremote.model.security.UserResource.get
281
249
  */
282
- getAppInfos(options?: O): RestResponse<any>;
250
+ get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
283
251
  }
284
- export declare class AgentResourceClient<O> {
252
+ export declare class ConfigurationResourceClient<O> {
285
253
  protected httpClient: HttpClient<O>;
286
254
  constructor(httpClient: HttpClient<O>);
287
255
  /**
288
- * HTTP GET /agent/assetDiscovery/{agentId}
289
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
256
+ * HTTP GET /configuration/manager
257
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
290
258
  */
291
- doProtocolAssetDiscovery(agentId: string, queryParams?: {
292
- realm?: string;
293
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
259
+ getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
294
260
  /**
295
- * HTTP POST /agent/assetImport/{agentId}
296
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
261
+ * HTTP PUT /configuration/manager
262
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
297
263
  */
298
- doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
299
- realm?: string;
300
- }, options?: O): RestResponse<Model.AssetTreeNode[]>;
264
+ update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
301
265
  /**
302
- * HTTP GET /agent/instanceDiscovery/{agentType}
303
- * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
266
+ * HTTP POST /configuration/manager/file
267
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
304
268
  */
305
- doProtocolInstanceDiscovery(agentType: string, queryParams?: {
306
- parentId?: string;
307
- realm?: string;
308
- }, options?: O): RestResponse<Model.Agent[]>;
269
+ fileUpload(fileInfo: Model.FileInfo, queryParams?: {
270
+ path?: string;
271
+ }, options?: O): RestResponse<string>;
272
+ /**
273
+ * HTTP GET /configuration/manager/image/{filename: .+}
274
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
275
+ */
276
+ getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
309
277
  }
310
- export declare class UserResourceClient<O> {
278
+ export declare class GatewayServiceResourceClient<O> {
311
279
  protected httpClient: HttpClient<O>;
312
280
  constructor(httpClient: HttpClient<O>);
313
281
  /**
314
- * HTTP PUT /user/locale
315
- * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
282
+ * HTTP POST /gateway/tunnel
283
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
316
284
  */
317
- updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
285
+ startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
318
286
  /**
319
- * HTTP POST /user/query
320
- * Java method: org.openremote.model.security.UserResource.query
287
+ * HTTP DELETE /gateway/tunnel
288
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
321
289
  */
322
- query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
290
+ stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
323
291
  /**
324
- * HTTP GET /user/user
325
- * Java method: org.openremote.model.security.UserResource.getCurrent
292
+ * HTTP GET /gateway/tunnel/{realm}
293
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
326
294
  */
327
- getCurrent(options?: O): RestResponse<Model.User>;
295
+ getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
328
296
  /**
329
- * HTTP GET /user/userRealmRoles
330
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
297
+ * HTTP GET /gateway/tunnel/{realm}/{id}
298
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
331
299
  */
332
- getCurrentUserRealmRoles(options?: O): RestResponse<Model.Role[]>;
300
+ getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
333
301
  /**
334
- * HTTP GET /user/userRoles
335
- * Java method: org.openremote.model.security.UserResource.getCurrentUserRoles
302
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
303
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
336
304
  */
337
- getCurrentUserRoles(options?: O): RestResponse<Model.Role[]>;
305
+ getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
306
+ }
307
+ export declare class SyslogResourceClient<O> {
308
+ protected httpClient: HttpClient<O>;
309
+ constructor(httpClient: HttpClient<O>);
338
310
  /**
339
- * HTTP GET /user/userRoles/{clientId}
340
- * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
311
+ * HTTP GET /syslog/config
312
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
341
313
  */
342
- getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<Model.Role[]>;
314
+ getConfig(options?: O): RestResponse<Model.SyslogConfig>;
343
315
  /**
344
- * HTTP GET /user/{realm}/disconnect/{sessionID}
345
- * Java method: org.openremote.model.security.UserResource.disconnectUserSession
316
+ * HTTP PUT /syslog/config
317
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
346
318
  */
347
- disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
319
+ updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
348
320
  /**
349
- * HTTP PUT /user/{realm}/reset-password/{userId}
350
- * Java method: org.openremote.model.security.UserResource.resetPassword
321
+ * HTTP DELETE /syslog/event
322
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
351
323
  */
352
- resetPassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
324
+ clearEvents(options?: O): RestResponse<void>;
353
325
  /**
354
- * HTTP GET /user/{realm}/reset-secret/{userId}
355
- * Java method: org.openremote.model.security.UserResource.resetSecret
326
+ * HTTP GET /syslog/event
327
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
356
328
  */
357
- resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
329
+ getEvents(queryParams?: {
330
+ level?: Model.SyslogLevel;
331
+ per_page?: number;
332
+ page?: number;
333
+ from?: number;
334
+ to?: number;
335
+ category?: Model.SyslogCategory[];
336
+ subCategory?: string[];
337
+ }, options?: O): RestResponse<any>;
338
+ }
339
+ export declare class ProvisioningResourceClient<O> {
340
+ protected httpClient: HttpClient<O>;
341
+ constructor(httpClient: HttpClient<O>);
358
342
  /**
359
- * HTTP GET /user/{realm}/roles
360
- * Java method: org.openremote.model.security.UserResource.getRoles
343
+ * HTTP POST /provisioning
344
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
361
345
  */
362
- getRoles(realm: string, options?: O): RestResponse<Model.Role[]>;
346
+ createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
363
347
  /**
364
- * HTTP PUT /user/{realm}/roles
365
- * Java method: org.openremote.model.security.UserResource.updateRoles
348
+ * HTTP GET /provisioning
349
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
366
350
  */
367
- updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
351
+ getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
368
352
  /**
369
- * HTTP GET /user/{realm}/userRealmRoles/{userId}
370
- * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
353
+ * HTTP DELETE /provisioning/{id}
354
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
371
355
  */
372
- getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<Model.Role[]>;
356
+ deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
373
357
  /**
374
- * HTTP PUT /user/{realm}/userRealmRoles/{userId}
375
- * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
358
+ * HTTP PUT /provisioning/{id}
359
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
376
360
  */
377
- updateUserRealmRoles(realm: string, userId: string, roles: Model.Role[], options?: O): RestResponse<void>;
361
+ updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
362
+ }
363
+ export declare class GatewayClientResourceClient<O> {
364
+ protected httpClient: HttpClient<O>;
365
+ constructor(httpClient: HttpClient<O>);
378
366
  /**
379
- * HTTP GET /user/{realm}/userRoles/{userId}
380
- * Java method: org.openremote.model.security.UserResource.getUserRoles
367
+ * HTTP DELETE /gateway/connection
368
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
381
369
  */
382
- getUserRoles(realm: string, userId: string, options?: O): RestResponse<Model.Role[]>;
370
+ deleteConnections(queryParams?: {
371
+ realm?: string[];
372
+ }, options?: O): RestResponse<void>;
383
373
  /**
384
- * HTTP PUT /user/{realm}/userRoles/{userId}
385
- * Java method: org.openremote.model.security.UserResource.updateUserRoles
374
+ * HTTP GET /gateway/connection
375
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
386
376
  */
387
- updateUserRoles(realm: string, userId: string, roles: Model.Role[], options?: O): RestResponse<void>;
377
+ getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
388
378
  /**
389
- * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
390
- * Java method: org.openremote.model.security.UserResource.getUserClientRoles
379
+ * HTTP DELETE /gateway/connection/{realm}
380
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
391
381
  */
392
- getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
382
+ deleteConnection(realm: string, options?: O): RestResponse<void>;
393
383
  /**
394
- * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
395
- * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
384
+ * HTTP GET /gateway/connection/{realm}
385
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
396
386
  */
397
- updateUserClientRoles(realm: string, userId: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
387
+ getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
398
388
  /**
399
- * HTTP GET /user/{realm}/userSessions/{userId}
400
- * Java method: org.openremote.model.security.UserResource.getUserSessions
389
+ * HTTP PUT /gateway/connection/{realm}
390
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
401
391
  */
402
- getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
392
+ setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
403
393
  /**
404
- * HTTP POST /user/{realm}/users
405
- * Java method: org.openremote.model.security.UserResource.create
394
+ * HTTP GET /gateway/status/{realm}
395
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
406
396
  */
407
- create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
397
+ getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
398
+ }
399
+ export declare class ConsoleResourceClient<O> {
400
+ protected httpClient: HttpClient<O>;
401
+ constructor(httpClient: HttpClient<O>);
408
402
  /**
409
- * HTTP PUT /user/{realm}/users
410
- * Java method: org.openremote.model.security.UserResource.update
403
+ * HTTP POST /console/register
404
+ * Java method: org.openremote.model.console.ConsoleResource.register
411
405
  */
412
- update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
406
+ register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
407
+ }
408
+ export declare class NotificationResourceClient<O> {
409
+ protected httpClient: HttpClient<O>;
410
+ constructor(httpClient: HttpClient<O>);
413
411
  /**
414
- * HTTP DELETE /user/{realm}/users/{userId}
415
- * Java method: org.openremote.model.security.UserResource.delete
412
+ * HTTP GET /notification
413
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
416
414
  */
417
- delete(realm: string, userId: string, options?: O): RestResponse<void>;
415
+ getNotifications(queryParams?: {
416
+ id?: number;
417
+ type?: string;
418
+ from?: number;
419
+ to?: number;
420
+ realmId?: string;
421
+ userId?: string;
422
+ assetId?: string;
423
+ }, options?: O): RestResponse<Model.SentNotification[]>;
418
424
  /**
419
- * HTTP GET /user/{realm}/{clientId}/roles
420
- * Java method: org.openremote.model.security.UserResource.getClientRoles
425
+ * HTTP DELETE /notification
426
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
421
427
  */
422
- getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
428
+ removeNotifications(queryParams?: {
429
+ id?: number;
430
+ type?: string;
431
+ from?: number;
432
+ to?: number;
433
+ realmId?: string;
434
+ userId?: string;
435
+ assetId?: string;
436
+ }, options?: O): RestResponse<void>;
423
437
  /**
424
- * HTTP PUT /user/{realm}/{clientId}/roles
425
- * Java method: org.openremote.model.security.UserResource.updateClientRoles
438
+ * HTTP POST /notification/alert
439
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
426
440
  */
427
- updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
441
+ sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
428
442
  /**
429
- * HTTP GET /user/{realm}/{userId}
430
- * Java method: org.openremote.model.security.UserResource.get
443
+ * HTTP DELETE /notification/{notificationId}
444
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
431
445
  */
432
- get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
433
- }
434
- export declare class StatusResourceClient<O> {
435
- protected httpClient: HttpClient<O>;
436
- constructor(httpClient: HttpClient<O>);
446
+ removeNotification(notificationId: number, options?: O): RestResponse<void>;
437
447
  /**
438
- * HTTP GET /health
439
- * Java method: org.openremote.model.system.StatusResource.getHealthStatus
448
+ * HTTP PUT /notification/{notificationId}/acknowledged
449
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
440
450
  */
441
- getHealthStatus(options?: O): RestResponse<{
442
- [index: string]: any;
443
- }>;
451
+ notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
452
+ targetId?: string;
453
+ }, options?: O): RestResponse<void>;
444
454
  /**
445
- * HTTP GET /info
446
- * Java method: org.openremote.model.system.StatusResource.getInfo
455
+ * HTTP PUT /notification/{notificationId}/delivered
456
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
447
457
  */
448
- getInfo(options?: O): RestResponse<{
449
- [index: string]: any;
450
- }>;
458
+ notificationDelivered(notificationId: number, queryParams?: {
459
+ targetId?: string;
460
+ }, options?: O): RestResponse<void>;
451
461
  }
452
- export declare class AssetPredictedDatapointResourceClient<O> {
462
+ export declare class AgentResourceClient<O> {
453
463
  protected httpClient: HttpClient<O>;
454
464
  constructor(httpClient: HttpClient<O>);
455
465
  /**
456
- * HTTP POST /asset/predicted/{assetId}/{attributeName}
457
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
466
+ * HTTP GET /agent/assetDiscovery/{agentId}
467
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
458
468
  */
459
- getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
469
+ doProtocolAssetDiscovery(agentId: string, queryParams?: {
470
+ realm?: string;
471
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
460
472
  /**
461
- * HTTP PUT /asset/predicted/{assetId}/{attributeName}
462
- * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
473
+ * HTTP POST /agent/assetImport/{agentId}
474
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
463
475
  */
464
- writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
476
+ doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
477
+ realm?: string;
478
+ }, options?: O): RestResponse<Model.AssetTreeNode[]>;
479
+ /**
480
+ * HTTP GET /agent/instanceDiscovery/{agentType}
481
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
482
+ */
483
+ doProtocolInstanceDiscovery(agentType: string, queryParams?: {
484
+ parentId?: string;
485
+ realm?: string;
486
+ }, options?: O): RestResponse<Model.Agent[]>;
465
487
  }
466
488
  export declare class AssetResourceClient<O> {
467
489
  protected httpClient: HttpClient<O>;
@@ -675,249 +697,227 @@ export declare class RulesResourceClient<O> {
675
697
  */
676
698
  updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
677
699
  }
678
- export declare class MapResourceClient<O> {
700
+ export declare class AlarmResourceClient<O> {
679
701
  protected httpClient: HttpClient<O>;
680
702
  constructor(httpClient: HttpClient<O>);
681
703
  /**
682
- * HTTP GET /map
683
- * Java method: org.openremote.model.map.MapResource.getSettings
684
- */
685
- getSettings(options?: O): RestResponse<{
686
- [id: string]: unknown;
687
- }>;
688
- /**
689
- * HTTP PUT /map
690
- * Java method: org.openremote.model.map.MapResource.saveSettings
691
- */
692
- saveSettings(mapConfig: {
693
- [index: string]: Model.MapRealmConfig;
694
- }, options?: O): RestResponse<any>;
695
- /**
696
- * HTTP GET /map/js
697
- * Java method: org.openremote.model.map.MapResource.getSettingsJs
704
+ * HTTP POST /alarm
705
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
698
706
  */
699
- getSettingsJs(options?: O): RestResponse<{
700
- [id: string]: unknown;
701
- }>;
707
+ createAlarm(alarm: Model.Alarm, queryParams?: {
708
+ assetIds?: string[];
709
+ }, options?: O): RestResponse<Model.SentAlarm>;
702
710
  /**
703
- * HTTP GET /map/tile/{zoom}/{column}/{row}
704
- * Java method: org.openremote.model.map.MapResource.getTile
711
+ * HTTP GET /alarm
712
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
705
713
  */
706
- getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
707
- }
708
- export declare class DashboardResourceClient<O> {
709
- protected httpClient: HttpClient<O>;
710
- constructor(httpClient: HttpClient<O>);
714
+ getAlarms(queryParams?: {
715
+ realm?: string;
716
+ status?: Model.AlarmStatus;
717
+ assetId?: string;
718
+ assigneeId?: string;
719
+ }, options?: O): RestResponse<Model.SentAlarm[]>;
711
720
  /**
712
- * HTTP POST /dashboard
713
- * Java method: org.openremote.model.dashboard.DashboardResource.create
721
+ * HTTP DELETE /alarm
722
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
714
723
  */
715
- create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
724
+ removeAlarms(ids: number[], options?: O): RestResponse<void>;
716
725
  /**
717
- * HTTP PUT /dashboard
718
- * Java method: org.openremote.model.dashboard.DashboardResource.update
726
+ * HTTP PUT /alarm/assets
727
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
719
728
  */
720
- update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
729
+ setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
721
730
  /**
722
- * HTTP GET /dashboard/all/{realm}
723
- * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
731
+ * HTTP GET /alarm/{alarmId}
732
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
724
733
  */
725
- getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
734
+ getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
726
735
  /**
727
- * HTTP POST /dashboard/query
728
- * Java method: org.openremote.model.dashboard.DashboardResource.query
736
+ * HTTP DELETE /alarm/{alarmId}
737
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
729
738
  */
730
- query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
739
+ removeAlarm(alarmId: number, options?: O): RestResponse<void>;
731
740
  /**
732
- * HTTP DELETE /dashboard/{realm}/{dashboardId}
733
- * Java method: org.openremote.model.dashboard.DashboardResource.delete
741
+ * HTTP PUT /alarm/{alarmId}
742
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
734
743
  */
735
- delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
744
+ updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
736
745
  /**
737
- * HTTP GET /dashboard/{realm}/{dashboardId}
738
- * Java method: org.openremote.model.dashboard.DashboardResource.get
746
+ * HTTP GET /alarm/{alarmId}/assets
747
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
739
748
  */
740
- get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
749
+ getAssetLinks(alarmId: number, queryParams?: {
750
+ realm?: string;
751
+ }, options?: O): RestResponse<Model.AlarmAssetLink[]>;
741
752
  }
742
- export declare class GatewayServiceResourceClient<O> {
753
+ export declare class StatusResourceClient<O> {
743
754
  protected httpClient: HttpClient<O>;
744
755
  constructor(httpClient: HttpClient<O>);
745
756
  /**
746
- * HTTP POST /gateway/tunnel
747
- * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
748
- */
749
- startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
750
- /**
751
- * HTTP DELETE /gateway/tunnel
752
- * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
753
- */
754
- stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
755
- /**
756
- * HTTP GET /gateway/tunnel/{realm}
757
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
758
- */
759
- getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
760
- /**
761
- * HTTP GET /gateway/tunnel/{realm}/{id}
762
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
757
+ * HTTP GET /health
758
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
763
759
  */
764
- getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
760
+ getHealthStatus(options?: O): RestResponse<{
761
+ [index: string]: any;
762
+ }>;
765
763
  /**
766
- * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
767
- * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
764
+ * HTTP GET /info
765
+ * Java method: org.openremote.model.system.StatusResource.getInfo
768
766
  */
769
- getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
767
+ getInfo(options?: O): RestResponse<{
768
+ [index: string]: any;
769
+ }>;
770
770
  }
771
- export declare class FlowResourceClient<O> {
771
+ export declare class AssetModelResourceClient<O> {
772
772
  protected httpClient: HttpClient<O>;
773
773
  constructor(httpClient: HttpClient<O>);
774
774
  /**
775
- * HTTP GET /flow
776
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
775
+ * HTTP GET /model/assetDescriptors
776
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
777
777
  */
778
- getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
778
+ getAssetDescriptors(queryParams?: {
779
+ parentId?: string;
780
+ parentType?: string;
781
+ }, options?: O): RestResponse<Model.AssetDescriptor[]>;
779
782
  /**
780
- * HTTP GET /flow/{name}
781
- * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
783
+ * HTTP GET /model/assetInfo/{assetType}
784
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
782
785
  */
783
- getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
786
+ getAssetInfo(assetType: string, queryParams?: {
787
+ parentId?: string;
788
+ }, options?: O): RestResponse<Model.AssetTypeInfo>;
784
789
  /**
785
- * HTTP GET /flow/{type}
786
- * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
790
+ * HTTP GET /model/assetInfos
791
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
787
792
  */
788
- getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
793
+ getAssetInfos(queryParams?: {
794
+ parentId?: string;
795
+ parentType?: string;
796
+ }, options?: O): RestResponse<Model.AssetTypeInfo[]>;
797
+ /**
798
+ * HTTP GET /model/metaItemDescriptors
799
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
800
+ */
801
+ getMetaItemDescriptors(queryParams?: {
802
+ parentId?: string;
803
+ }, options?: O): RestResponse<{
804
+ [index: string]: Model.MetaItemDescriptor;
805
+ }>;
806
+ /**
807
+ * HTTP GET /model/valueDescriptors
808
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
809
+ */
810
+ getValueDescriptors(queryParams?: {
811
+ parentId?: string;
812
+ }, options?: O): RestResponse<{
813
+ [index: string]: Model.ValueDescriptor;
814
+ }>;
789
815
  }
790
- export declare class SyslogResourceClient<O> {
816
+ export declare class AssetDatapointResourceClient<O> {
791
817
  protected httpClient: HttpClient<O>;
792
818
  constructor(httpClient: HttpClient<O>);
793
819
  /**
794
- * HTTP GET /syslog/config
795
- * Java method: org.openremote.model.syslog.SyslogResource.getConfig
796
- */
797
- getConfig(options?: O): RestResponse<Model.SyslogConfig>;
798
- /**
799
- * HTTP PUT /syslog/config
800
- * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
820
+ * HTTP GET /asset/datapoint/export
821
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
801
822
  */
802
- updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
823
+ getDatapointExport(queryParams?: {
824
+ attributeRefs?: string;
825
+ fromTimestamp?: number;
826
+ toTimestamp?: number;
827
+ }, options?: O): RestResponse<any>;
803
828
  /**
804
- * HTTP DELETE /syslog/event
805
- * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
829
+ * HTTP GET /asset/datapoint/periods
830
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
806
831
  */
807
- clearEvents(options?: O): RestResponse<void>;
832
+ getDatapointPeriod(queryParams?: {
833
+ assetId?: string;
834
+ attributeName?: string;
835
+ }, options?: O): RestResponse<Model.DatapointPeriod>;
808
836
  /**
809
- * HTTP GET /syslog/event
810
- * Java method: org.openremote.model.syslog.SyslogResource.getEvents
837
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
838
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
811
839
  */
812
- getEvents(queryParams?: {
813
- level?: Model.SyslogLevel;
814
- per_page?: number;
815
- page?: number;
816
- from?: number;
817
- to?: number;
818
- category?: Model.SyslogCategory[];
819
- subCategory?: string[];
820
- }, options?: O): RestResponse<any>;
840
+ getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
821
841
  }
822
- export declare class NotificationResourceClient<O> {
842
+ export declare class RealmResourceClient<O> {
823
843
  protected httpClient: HttpClient<O>;
824
844
  constructor(httpClient: HttpClient<O>);
825
845
  /**
826
- * HTTP GET /notification
827
- * Java method: org.openremote.model.notification.NotificationResource.getNotifications
846
+ * HTTP POST /realm
847
+ * Java method: org.openremote.model.security.RealmResource.create
828
848
  */
829
- getNotifications(queryParams?: {
830
- id?: number;
831
- type?: string;
832
- from?: number;
833
- to?: number;
834
- realmId?: string;
835
- userId?: string;
836
- assetId?: string;
837
- }, options?: O): RestResponse<Model.SentNotification[]>;
849
+ create(realm: Model.Realm, options?: O): RestResponse<void>;
838
850
  /**
839
- * HTTP DELETE /notification
840
- * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
851
+ * HTTP GET /realm
852
+ * Java method: org.openremote.model.security.RealmResource.getAll
841
853
  */
842
- removeNotifications(queryParams?: {
843
- id?: number;
844
- type?: string;
845
- from?: number;
846
- to?: number;
847
- realmId?: string;
848
- userId?: string;
849
- assetId?: string;
850
- }, options?: O): RestResponse<void>;
854
+ getAll(options?: O): RestResponse<Model.Realm[]>;
851
855
  /**
852
- * HTTP POST /notification/alert
853
- * Java method: org.openremote.model.notification.NotificationResource.sendNotification
856
+ * HTTP GET /realm/accessible
857
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
854
858
  */
855
- sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
859
+ getAccessible(options?: O): RestResponse<Model.Realm[]>;
856
860
  /**
857
- * HTTP DELETE /notification/{notificationId}
858
- * Java method: org.openremote.model.notification.NotificationResource.removeNotification
861
+ * HTTP DELETE /realm/{name}
862
+ * Java method: org.openremote.model.security.RealmResource.delete
859
863
  */
860
- removeNotification(notificationId: number, options?: O): RestResponse<void>;
864
+ delete(name: string, options?: O): RestResponse<void>;
861
865
  /**
862
- * HTTP PUT /notification/{notificationId}/acknowledged
863
- * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
866
+ * HTTP GET /realm/{name}
867
+ * Java method: org.openremote.model.security.RealmResource.get
864
868
  */
865
- notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
866
- targetId?: string;
867
- }, options?: O): RestResponse<void>;
869
+ get(name: string, options?: O): RestResponse<Model.Realm>;
868
870
  /**
869
- * HTTP PUT /notification/{notificationId}/delivered
870
- * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
871
+ * HTTP PUT /realm/{name}
872
+ * Java method: org.openremote.model.security.RealmResource.update
871
873
  */
872
- notificationDelivered(notificationId: number, queryParams?: {
873
- targetId?: string;
874
- }, options?: O): RestResponse<void>;
874
+ update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
875
875
  }
876
876
  export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
877
877
  export declare class ApiClient {
878
- protected _assetModelResource: AxiosAssetModelResourceClient;
879
- protected _realmResource: AxiosRealmResourceClient;
880
- protected _consoleResource: AxiosConsoleResourceClient;
881
- protected _configurationResource: AxiosConfigurationResourceClient;
882
- protected _alarmResource: AxiosAlarmResourceClient;
883
- protected _provisioningResource: AxiosProvisioningResourceClient;
884
- protected _gatewayClientResource: AxiosGatewayClientResourceClient;
885
- protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
878
+ protected _mapResource: AxiosMapResourceClient;
886
879
  protected _appResource: AxiosAppResourceClient;
887
- protected _agentResource: AxiosAgentResourceClient;
888
- protected _userResource: AxiosUserResourceClient;
889
- protected _statusResource: AxiosStatusResourceClient;
890
880
  protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
891
- protected _assetResource: AxiosAssetResourceClient;
892
- protected _rulesResource: AxiosRulesResourceClient;
893
- protected _mapResource: AxiosMapResourceClient;
881
+ protected _flowResource: AxiosFlowResourceClient;
894
882
  protected _dashboardResource: AxiosDashboardResourceClient;
883
+ protected _userResource: AxiosUserResourceClient;
884
+ protected _configurationResource: AxiosConfigurationResourceClient;
895
885
  protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
896
- protected _flowResource: AxiosFlowResourceClient;
897
886
  protected _syslogResource: AxiosSyslogResourceClient;
887
+ protected _provisioningResource: AxiosProvisioningResourceClient;
888
+ protected _gatewayClientResource: AxiosGatewayClientResourceClient;
889
+ protected _consoleResource: AxiosConsoleResourceClient;
898
890
  protected _notificationResource: AxiosNotificationResourceClient;
891
+ protected _agentResource: AxiosAgentResourceClient;
892
+ protected _assetResource: AxiosAssetResourceClient;
893
+ protected _rulesResource: AxiosRulesResourceClient;
894
+ protected _alarmResource: AxiosAlarmResourceClient;
895
+ protected _statusResource: AxiosStatusResourceClient;
896
+ protected _assetModelResource: AxiosAssetModelResourceClient;
897
+ protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
898
+ protected _realmResource: AxiosRealmResourceClient;
899
899
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
900
- get AssetModelResource(): AxiosAssetModelResourceClient;
901
- get RealmResource(): AxiosRealmResourceClient;
902
- get ConsoleResource(): AxiosConsoleResourceClient;
903
- get ConfigurationResource(): AxiosConfigurationResourceClient;
904
- get AlarmResource(): AxiosAlarmResourceClient;
905
- get ProvisioningResource(): AxiosProvisioningResourceClient;
906
- get GatewayClientResource(): AxiosGatewayClientResourceClient;
907
- get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
900
+ get MapResource(): AxiosMapResourceClient;
908
901
  get AppResource(): AxiosAppResourceClient;
909
- get AgentResource(): AxiosAgentResourceClient;
910
- get UserResource(): AxiosUserResourceClient;
911
- get StatusResource(): AxiosStatusResourceClient;
912
902
  get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
913
- get AssetResource(): AxiosAssetResourceClient;
914
- get RulesResource(): AxiosRulesResourceClient;
915
- get MapResource(): AxiosMapResourceClient;
903
+ get FlowResource(): AxiosFlowResourceClient;
916
904
  get DashboardResource(): AxiosDashboardResourceClient;
905
+ get UserResource(): AxiosUserResourceClient;
906
+ get ConfigurationResource(): AxiosConfigurationResourceClient;
917
907
  get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
918
- get FlowResource(): AxiosFlowResourceClient;
919
908
  get SyslogResource(): AxiosSyslogResourceClient;
909
+ get ProvisioningResource(): AxiosProvisioningResourceClient;
910
+ get GatewayClientResource(): AxiosGatewayClientResourceClient;
911
+ get ConsoleResource(): AxiosConsoleResourceClient;
920
912
  get NotificationResource(): AxiosNotificationResourceClient;
913
+ get AgentResource(): AxiosAgentResourceClient;
914
+ get AssetResource(): AxiosAssetResourceClient;
915
+ get RulesResource(): AxiosRulesResourceClient;
916
+ get AlarmResource(): AxiosAlarmResourceClient;
917
+ get StatusResource(): AxiosStatusResourceClient;
918
+ get AssetModelResource(): AxiosAssetModelResourceClient;
919
+ get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
920
+ get RealmResource(): AxiosRealmResourceClient;
921
921
  }
922
922
  import * as Axios from "axios";
923
923
  declare module "axios" {
@@ -925,66 +925,66 @@ declare module "axios" {
925
925
  data: R;
926
926
  }
927
927
  }
928
- export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
928
+ export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
929
929
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
930
930
  }
931
- export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
931
+ export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
932
932
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
933
933
  }
934
- export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
934
+ export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
935
935
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
936
936
  }
937
- export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
937
+ export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
938
938
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
939
939
  }
940
- export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
940
+ export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
941
941
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
942
942
  }
943
- export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
943
+ export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
944
944
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
945
945
  }
946
- export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
946
+ export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
947
947
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
948
948
  }
949
- export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
949
+ export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
950
950
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
951
951
  }
952
- export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
952
+ export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
953
953
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
954
954
  }
955
- export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
955
+ export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
956
956
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
957
957
  }
958
- export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
958
+ export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
959
959
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
960
960
  }
961
- export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
961
+ export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
962
962
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
963
963
  }
964
- export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
964
+ export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
965
965
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
966
966
  }
967
- export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
967
+ export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
968
968
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
969
969
  }
970
- export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
970
+ export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
971
971
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
972
972
  }
973
- export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
973
+ export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
974
974
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
975
975
  }
976
- export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
976
+ export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
977
977
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
978
978
  }
979
- export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
979
+ export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
980
980
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
981
981
  }
982
- export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
982
+ export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
983
983
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
984
984
  }
985
- export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
985
+ export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
986
986
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
987
987
  }
988
- export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
988
+ export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
989
989
  constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
990
990
  }