core: prepare group link before creating the group (#6600)

* core: prepare group link before creating the group

* update group creation flow

* refactor

* comments

* update plan, schema, api docs/types

* store shared group ID and keys when joining relay groups

* query plans, api docs
This commit is contained in:
Evgeny
2026-01-27 17:56:31 +00:00
committed by GitHub
parent 31ea6ffe32
commit 7d5768cf3a
22 changed files with 371 additions and 156 deletions
+41 -1
View File
@@ -90,6 +90,7 @@ This file is generated automatically.
- [GroupFeature](#groupfeature)
- [GroupFeatureEnabled](#groupfeatureenabled)
- [GroupInfo](#groupinfo)
- [GroupKeys](#groupkeys)
- [GroupLink](#grouplink)
- [GroupLinkPlan](#grouplinkplan)
- [GroupMember](#groupmember)
@@ -103,7 +104,9 @@ This file is generated automatically.
- [GroupPreferences](#grouppreferences)
- [GroupProfile](#groupprofile)
- [GroupRelay](#grouprelay)
- [GroupRootKey](#grouprootkey)
- [GroupShortLinkData](#groupshortlinkdata)
- [GroupShortLinkInfo](#groupshortlinkinfo)
- [GroupSummary](#groupsummary)
- [GroupSupportChat](#groupsupportchat)
- [HandshakeError](#handshakeerror)
@@ -2158,6 +2161,17 @@ MemberSupport:
- groupSummary: [GroupSummary](#groupsummary)
- membersRequireAttention: int
- viaGroupLinkUri: string?
- groupKeys: [GroupKeys](#groupkeys)?
---
## GroupKeys
**Record type**:
- sharedGroupId: string
- groupRootKey: [GroupRootKey](#grouprootkey)
- memberPrivKey: string
---
@@ -2181,7 +2195,7 @@ MemberSupport:
Ok:
- type: "ok"
- direct: bool
- groupSLinkInfo_: [GroupShortLinkInfo](#groupshortlinkinfo)?
- groupSLinkData_: [GroupShortLinkData](#groupshortlinkdata)?
OwnLink:
@@ -2225,6 +2239,7 @@ Known:
- createdAt: UTCTime
- updatedAt: UTCTime
- supportChat: [GroupSupportChat](#groupsupportchat)?
- memberPubKey: string?
---
@@ -2353,6 +2368,21 @@ Known:
- relayLink: string?
---
## GroupRootKey
**Discriminated union type**:
Private:
- type: "private"
- rootPrivKey: string
Public:
- type: "public"
- rootPubKey: string
---
## GroupShortLinkData
@@ -2361,6 +2391,16 @@ Known:
- groupProfile: [GroupProfile](#groupprofile)
---
## GroupShortLinkInfo
**Record type**:
- direct: bool
- groupRelays: [string]
- sharedGroupId: string?
---
## GroupSummary