@calimero-network/mero-js 23.9.0 → 24.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/account/account-admin.js +3 -1
- package/dist/admin-api/admin-types.d.ts +6 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/dist/warrant/governance-op.d.ts +1 -1
- package/package.json +1 -1
|
@@ -181,7 +181,9 @@ export function createAccountAdmin(input, deps = {}) {
|
|
|
181
181
|
return { namespaceId, haEnabled, ...(haError !== undefined ? { haError } : {}) };
|
|
182
182
|
},
|
|
183
183
|
async createGroupInNamespace(namespaceId, req = {}) {
|
|
184
|
-
|
|
184
|
+
// Absent ⇒ Open, as on a node: a subgroup created Restricted and flipped
|
|
185
|
+
// Open strands every namespace member outside it.
|
|
186
|
+
const { op } = await subgroupCreation({ parentId: namespaceId, restricted: req.visibility === 'restricted', admin: s.account });
|
|
185
187
|
const { groupId } = await root(s, namespaceId, op);
|
|
186
188
|
rememberGroupNamespace(s.account, groupId, namespaceId);
|
|
187
189
|
if (req.groupName)
|
|
@@ -668,7 +668,12 @@ export interface JoinNamespaceResponseData {
|
|
|
668
668
|
}
|
|
669
669
|
export interface CreateGroupInNamespaceRequest {
|
|
670
670
|
groupName?: string;
|
|
671
|
-
/**
|
|
671
|
+
/**
|
|
672
|
+
* Subgroup visibility at birth. Absent means `'open'` (core 0.11 and later;
|
|
673
|
+
* older nodes default to `'restricted'`). Pass `'restricted'` for a private
|
|
674
|
+
* subgroup, and choose here rather than flipping it afterwards: a subgroup
|
|
675
|
+
* created Restricted and flipped Open strands namespace members outside it.
|
|
676
|
+
*/
|
|
672
677
|
visibility?: 'open' | 'restricted';
|
|
673
678
|
}
|
|
674
679
|
export interface CreateGroupInNamespaceResponseData {
|