@openremote/rest 1.8.0-snapshot.20250818114025 → 1.8.0-snapshot.20250818131019

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