@openremote/rest 1.8.0-snapshot.20250811074902 → 1.8.0-snapshot.20250818084938

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