@openremote/rest 1.8.0-snapshot.20250722100739 → 1.8.0-snapshot.20250723203453

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