@openremote/rest 1.6.0-snapshot.20250430112803 → 1.6.0-snapshot.20250512155842

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