aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-common/src/meshbay_common/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-common/src/meshbay_common/protocol.py')
-rw-r--r--packages/meshbay-common/src/meshbay_common/protocol.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/protocol.py b/packages/meshbay-common/src/meshbay_common/protocol.py
index e502379..689adbf 100644
--- a/packages/meshbay-common/src/meshbay_common/protocol.py
+++ b/packages/meshbay-common/src/meshbay_common/protocol.py
@@ -164,6 +164,24 @@ class MNP:
ROOT_ADD_ACK = "root_add_ack" # node → operator: confirmed
ROOT_REMOVE = "root_remove" # operator → node: remove a root from a group
ROOT_REMOVE_ACK = "root_remove_ack" # node → operator: confirmed
+ # One message for every application's directories, keyed by the app's own
+ # name — adding an app adds no message type. VIDEO_ROOT / AUDIO_ROOT /
+ # PHOTO_ROOTS above are the same instruction under three earlier names and
+ # are still handled, for clients that predate this.
+ APP_DIRECTORIES = "app_directories" # operator → node: an app's folder(s)
+ APP_DIRECTORIES_ACK = "app_directories_ack"
+ # Chat's own two: where attachments are written (a destination, so it must
+ # be a read-write root), and whether the node unfurls links members post.
+ CHAT_DIRECTORY = "chat_directory"
+ CHAT_DIRECTORY_ACK = "chat_directory_ack"
+ CHAT_LINK_PREVIEW = "chat_link_preview"
+ CHAT_LINK_PREVIEW_ACK = "chat_link_preview_ack"
+ ROOT_UPDATE = "root_update" # operator → node: change writable/removable on a root
+ ROOT_UPDATE_ACK = "root_update_ack"
+ ROOT_EJECT = "root_eject" # operator → node: mark removable root as ejected
+ ROOT_EJECT_ACK = "root_eject_ack"
+ ROOT_PLUG = "root_plug" # operator → node: re-enable an ejected root
+ ROOT_PLUG_ACK = "root_plug_ack"
ROSTER_READ = "roster_read" # operator → node: list pinned identities + members
ROSTER_READ_ACK = "roster_read_ack"
DENYLIST_READ = "denylist_read" # operator → node: show denylist entries