@openremote/rest 1.2.3-1 → 1.2.3

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