@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.cjs CHANGED
@@ -1455,6 +1455,21 @@ var AdminApiClient = class {
1455
1455
  )
1456
1456
  );
1457
1457
  }
1458
+ /**
1459
+ * Replace a device's scope outright, in one root-signed op.
1460
+ *
1461
+ * {@link relinkAccountDevice} only ever adds applications; this is how a
1462
+ * scope is narrowed - or an `all` device is given a fixed list instead. The
1463
+ * device need not be online.
1464
+ */
1465
+ async rescopeAccountDevice(deviceId, request) {
1466
+ return unwrap(
1467
+ await this.httpClient.put(
1468
+ `/admin-api/account/devices/${encodeURIComponent(deviceId)}/scope`,
1469
+ request
1470
+ )
1471
+ );
1472
+ }
1458
1473
  /**
1459
1474
  * Every device of this account, as this node sees them - its own included.
1460
1475
  *