@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/admin-api/admin-client.d.ts +2 -1
- package/dist/admin-api/admin-client.d.ts.map +1 -1
- package/dist/admin-api/admin-client.js +5 -1
- package/dist/admin-api/admin-client.js.map +1 -1
- package/dist/admin-api/admin-types.d.ts +5 -0
- package/dist/admin-api/admin-types.d.ts.map +1 -1
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1020,7 +1020,10 @@ var AdminApiClient = class {
|
|
|
1020
1020
|
await this.httpClient.post(`/admin-api/groups/${parentGroupId}/unnest`, request);
|
|
1021
1021
|
}
|
|
1022
1022
|
async listSubgroups(groupId) {
|
|
1023
|
-
|
|
1023
|
+
const response = await this.httpClient.get(
|
|
1024
|
+
`/admin-api/groups/${groupId}/subgroups`
|
|
1025
|
+
);
|
|
1026
|
+
return response.subgroups ?? response.data ?? [];
|
|
1024
1027
|
}
|
|
1025
1028
|
async detachContextFromGroup(groupId, contextId, request) {
|
|
1026
1029
|
await this.httpClient.post(`/admin-api/groups/${groupId}/contexts/${contextId}/remove`, request ?? {});
|
|
@@ -1039,6 +1042,14 @@ var AdminApiClient = class {
|
|
|
1039
1042
|
await this.httpClient.post("/admin-api/groups/join", request)
|
|
1040
1043
|
);
|
|
1041
1044
|
}
|
|
1045
|
+
async joinSubgroupInheritance(groupId) {
|
|
1046
|
+
return unwrap(
|
|
1047
|
+
await this.httpClient.post(
|
|
1048
|
+
`/admin-api/groups/${groupId}/join-via-inheritance`,
|
|
1049
|
+
{}
|
|
1050
|
+
)
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1042
1053
|
// ---- TEE ----
|
|
1043
1054
|
async getTeeInfo() {
|
|
1044
1055
|
return unwrap(await this.httpClient.get("/admin-api/tee/info"));
|