@openremote/rest 1.7.0-snapshot.20250623193034 → 1.7.0-snapshot.20250624090028

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