@calimero-network/mero-js 19.4.0 → 19.5.0

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.
package/dist/index.mjs CHANGED
@@ -1057,6 +1057,33 @@ var AdminApiClient = class {
1057
1057
  async listApplicationAliases() {
1058
1058
  return unwrap(await this.httpClient.get("/admin-api/alias/list/application"));
1059
1059
  }
1060
+ async createDeviceAlias(request) {
1061
+ return unwrap(
1062
+ await this.httpClient.post(
1063
+ "/admin-api/alias/create/device",
1064
+ { alias: request.alias, deviceId: request.deviceId }
1065
+ )
1066
+ );
1067
+ }
1068
+ async lookupDeviceAlias(name) {
1069
+ return unwrap(
1070
+ await this.httpClient.post(
1071
+ `/admin-api/alias/lookup/device/${encodeURIComponent(name)}`,
1072
+ {}
1073
+ )
1074
+ );
1075
+ }
1076
+ async deleteDeviceAlias(name) {
1077
+ return unwrap(
1078
+ await this.httpClient.post(
1079
+ `/admin-api/alias/delete/device/${encodeURIComponent(name)}`,
1080
+ {}
1081
+ )
1082
+ );
1083
+ }
1084
+ async listDeviceAliases() {
1085
+ return unwrap(await this.httpClient.get("/admin-api/alias/list/device"));
1086
+ }
1060
1087
  // ---- Namespace Management ----
1061
1088
  async listNamespaces() {
1062
1089
  return unwrap(await this.httpClient.get("/admin-api/namespaces"));