S2S: Factory: Implement collaborators and teams

Teams now serve as a way to offer factories to remote instances
This commit is contained in:
Pere Lev 2024-08-06 17:27:52 +03:00
parent df4a2b221e
commit b74d0d46c4
No known key found for this signature in database
GPG key ID: 5252C5C863E5E57D
2 changed files with 2083 additions and 0 deletions

View file

@ -2175,6 +2175,12 @@ componentRemove grabKomponent topicComponent now topicKey (Verse authorIdMsig bo
Just inboxItemID -> Just inboxItemID ->
doneDB inboxItemID "[Team-passive] Saw the removal attempt, just waiting for the Revoke" doneDB inboxItemID "[Team-passive] Saw the removal attempt, just waiting for the Revoke"
-- Meaning: An actor A asked to join a resource
-- Behavior:
-- * Verify the resource is me
-- * Verify A doesn't already have an invite/join/grant for me
-- * Remember the join in DB
-- * Forward the Join to my followers
topicJoin topicJoin
:: (PersistRecordBackend topic SqlBackend, ToBackendKey SqlBackend topic) :: (PersistRecordBackend topic SqlBackend, ToBackendKey SqlBackend topic)
=> (topic -> ResourceId) => (topic -> ResourceId)

File diff suppressed because it is too large Load diff