@openremote/rest 1.7.0-snapshot.20250704123426 → 1.7.0

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