@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/admin-api/admin-client.d.ts +9 -1
- package/dist/admin-api/admin-client.js +10 -0
- package/dist/admin-api/admin-types.d.ts +44 -0
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
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
|
*
|