@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.cjs CHANGED
@@ -1142,6 +1142,33 @@ var AdminApiClient = class {
1142
1142
  async listApplicationAliases() {
1143
1143
  return unwrap(await this.httpClient.get("/admin-api/alias/list/application"));
1144
1144
  }
1145
+ async createDeviceAlias(request) {
1146
+ return unwrap(
1147
+ await this.httpClient.post(
1148
+ "/admin-api/alias/create/device",
1149
+ { alias: request.alias, deviceId: request.deviceId }
1150
+ )
1151
+ );
1152
+ }
1153
+ async lookupDeviceAlias(name) {
1154
+ return unwrap(
1155
+ await this.httpClient.post(
1156
+ `/admin-api/alias/lookup/device/${encodeURIComponent(name)}`,
1157
+ {}
1158
+ )
1159
+ );
1160
+ }
1161
+ async deleteDeviceAlias(name) {
1162
+ return unwrap(
1163
+ await this.httpClient.post(
1164
+ `/admin-api/alias/delete/device/${encodeURIComponent(name)}`,
1165
+ {}
1166
+ )
1167
+ );
1168
+ }
1169
+ async listDeviceAliases() {
1170
+ return unwrap(await this.httpClient.get("/admin-api/alias/list/device"));
1171
+ }
1145
1172
  // ---- Namespace Management ----
1146
1173
  async listNamespaces() {
1147
1174
  return unwrap(await this.httpClient.get("/admin-api/namespaces"));