From 6034a3ce06a046f13860e394658099d8a3121b8b Mon Sep 17 00:00:00 2001 From: Kayh Date: Mon, 6 May 2024 19:39:23 -0400 Subject: [PATCH] update world-registry protocol --- social/dwn/protocols/world-registry.json | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/social/dwn/protocols/world-registry.json b/social/dwn/protocols/world-registry.json index e91d168..e22adae 100644 --- a/social/dwn/protocols/world-registry.json +++ b/social/dwn/protocols/world-registry.json @@ -1,5 +1,6 @@ { "protocol": "https://wired-protocol.org/v0/protocols/world-registry.json", + "published": true, "types": { "instance": { "schema": "https://wired-protocol.org/v0/schemas/instance.json", @@ -8,26 +9,41 @@ "instance-info": { "schema": "https://wired-protocol.org/v0/schemas/instance-info.json", "dataFormat": ["application/json"] + }, + "host-url": { + "dataFormat": ["application/json"] } }, "structure": { - "instance": { + "host-url": { "$actions": [ { "who": "anyone", - "can": "read" + "can": ["read"] }, + { + "who": "recipient", + "can": ["write"] + } + ] + }, + "instance": { + "$actions": [ { "who": "anyone", - "can": "write" + "can": ["read", "write"] } ], "instance-info": { "$actions": [ + { + "who": "anyone", + "can": ["read"] + }, { "who": "recipient", "of": "instance", - "can": "write" + "can": ["write"] } ] }