@calimero-network/mero-js 19.10.0 → 19.12.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,35 @@ 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
+ }
1473
+ /**
1474
+ * Name a device of this account, for a listing to render.
1475
+ *
1476
+ * Run on the node holding the account root to name any device; a paired
1477
+ * node is accepted only for that device's own id.
1478
+ */
1479
+ async labelAccountDevice(deviceId, request) {
1480
+ return unwrap(
1481
+ await this.httpClient.put(
1482
+ `/admin-api/account/devices/${encodeURIComponent(deviceId)}/label`,
1483
+ request
1484
+ )
1485
+ );
1486
+ }
1458
1487
  /**
1459
1488
  * Every device of this account, as this node sees them - its own included.
1460
1489
  *