@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.mjs CHANGED
@@ -1169,11 +1169,14 @@ var AdminApiClient = class {
1169
1169
  )
1170
1170
  );
1171
1171
  }
1172
- async nestGroup(parentGroupId, request) {
1173
- await this.httpClient.post(`/admin-api/groups/${parentGroupId}/nest`, request);
1174
- }
1175
- async unnestGroup(parentGroupId, request) {
1176
- await this.httpClient.post(`/admin-api/groups/${parentGroupId}/unnest`, request);
1172
+ /** Move `childGroupId` under `request.newParentId`. */
1173
+ async reparentGroup(childGroupId, request) {
1174
+ return unwrap(
1175
+ await this.httpClient.post(
1176
+ `/admin-api/groups/${childGroupId}/reparent`,
1177
+ request
1178
+ )
1179
+ );
1177
1180
  }
1178
1181
  async listSubgroups(groupId) {
1179
1182
  const response = await this.httpClient.get(