@calimero-network/mero-js 2.1.0 → 2.2.1

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
@@ -1079,7 +1079,10 @@ var AdminApiClient = class {
1079
1079
  await this.httpClient.post(`/admin-api/groups/${parentGroupId}/unnest`, request);
1080
1080
  }
1081
1081
  async listSubgroups(groupId) {
1082
- return unwrap(await this.httpClient.get(`/admin-api/groups/${groupId}/subgroups`));
1082
+ const response = await this.httpClient.get(
1083
+ `/admin-api/groups/${groupId}/subgroups`
1084
+ );
1085
+ return response.subgroups ?? response.data ?? [];
1083
1086
  }
1084
1087
  async detachContextFromGroup(groupId, contextId, request) {
1085
1088
  await this.httpClient.post(`/admin-api/groups/${groupId}/contexts/${contextId}/remove`, request ?? {});
@@ -1098,6 +1101,14 @@ var AdminApiClient = class {
1098
1101
  await this.httpClient.post("/admin-api/groups/join", request)
1099
1102
  );
1100
1103
  }
1104
+ async joinSubgroupInheritance(groupId) {
1105
+ return unwrap(
1106
+ await this.httpClient.post(
1107
+ `/admin-api/groups/${groupId}/join-via-inheritance`,
1108
+ {}
1109
+ )
1110
+ );
1111
+ }
1101
1112
  // ---- TEE ----
1102
1113
  async getTeeInfo() {
1103
1114
  return unwrap(await this.httpClient.get("/admin-api/tee/info"));