@calimero-network/mero-js 19.10.0 → 19.11.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
@@ -1363,6 +1363,21 @@ var AdminApiClient = class {
1363
1363
  )
1364
1364
  );
1365
1365
  }
1366
+ /**
1367
+ * Replace a device's scope outright, in one root-signed op.
1368
+ *
1369
+ * {@link relinkAccountDevice} only ever adds applications; this is how a
1370
+ * scope is narrowed - or an `all` device is given a fixed list instead. The
1371
+ * device need not be online.
1372
+ */
1373
+ async rescopeAccountDevice(deviceId, request) {
1374
+ return unwrap(
1375
+ await this.httpClient.put(
1376
+ `/admin-api/account/devices/${encodeURIComponent(deviceId)}/scope`,
1377
+ request
1378
+ )
1379
+ );
1380
+ }
1366
1381
  /**
1367
1382
  * Every device of this account, as this node sees them - its own included.
1368
1383
  *