@calimero-network/mero-js 5.0.0 → 6.0.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
@@ -1229,11 +1229,14 @@ var AdminApiClient = class {
1229
1229
  )
1230
1230
  );
1231
1231
  }
1232
- async nestGroup(parentGroupId, request) {
1233
- await this.httpClient.post(`/admin-api/groups/${parentGroupId}/nest`, request);
1234
- }
1235
- async unnestGroup(parentGroupId, request) {
1236
- await this.httpClient.post(`/admin-api/groups/${parentGroupId}/unnest`, request);
1232
+ /** Move `childGroupId` under `request.newParentId`. */
1233
+ async reparentGroup(childGroupId, request) {
1234
+ return unwrap(
1235
+ await this.httpClient.post(
1236
+ `/admin-api/groups/${childGroupId}/reparent`,
1237
+ request
1238
+ )
1239
+ );
1237
1240
  }
1238
1241
  async listSubgroups(groupId) {
1239
1242
  const response = await this.httpClient.get(