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

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