@openremote/rest 1.4.0 → 1.5.0-snapshot.20250422072347

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