@openremote/rest 1.9.0-snapshot.20250915075908 → 1.9.0-snapshot.20250915103826

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