@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.
@@ -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
- const { op } = await subgroupCreation({ parentId: namespaceId, restricted: req.visibility !== 'open', admin: s.account });
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
- /** Subgroup visibility at birth. Absent means `'restricted'`. */
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 {