@calimero-network/mero-js 19.11.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/admin-api/admin-client.d.ts +8 -1
- package/dist/admin-api/admin-client.js +9 -0
- package/dist/admin-api/admin-types.d.ts +39 -0
- package/dist/index.browser.mjs +1 -1
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1378,6 +1378,20 @@ var AdminApiClient = class {
|
|
|
1378
1378
|
)
|
|
1379
1379
|
);
|
|
1380
1380
|
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Name a device of this account, for a listing to render.
|
|
1383
|
+
*
|
|
1384
|
+
* Run on the node holding the account root to name any device; a paired
|
|
1385
|
+
* node is accepted only for that device's own id.
|
|
1386
|
+
*/
|
|
1387
|
+
async labelAccountDevice(deviceId, request) {
|
|
1388
|
+
return unwrap(
|
|
1389
|
+
await this.httpClient.put(
|
|
1390
|
+
`/admin-api/account/devices/${encodeURIComponent(deviceId)}/label`,
|
|
1391
|
+
request
|
|
1392
|
+
)
|
|
1393
|
+
);
|
|
1394
|
+
}
|
|
1381
1395
|
/**
|
|
1382
1396
|
* Every device of this account, as this node sees them - its own included.
|
|
1383
1397
|
*
|