@openremote/rest 1.6.0-snapshot.20250513081115 → 1.6.0-snapshot.20250514060942

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