summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-common/src/meshbay_common
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-common/src/meshbay_common')
-rw-r--r--packages/meshbay-common/src/meshbay_common/adminop.py5
-rw-r--r--packages/meshbay-common/src/meshbay_common/protocol.py2
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/adminop.py b/packages/meshbay-common/src/meshbay_common/adminop.py
index 73f07d9..ad109b2 100644
--- a/packages/meshbay-common/src/meshbay_common/adminop.py
+++ b/packages/meshbay-common/src/meshbay_common/adminop.py
@@ -49,6 +49,11 @@ OP_MEMBER_UNPIN = "member_unpin"
# setting decides who may write to the operator's disk, so a node that took it
# from an unsigned message would let any member re-enable it for everyone.
OP_MEMBER_UPLOAD = "member_upload"
+# Which group "applications" (Chat, Files, and whatever registers later) are
+# shown to members. Signed like the rest: it decides what a member sees, not
+# anything about key material, but an unsigned toggle would let any member
+# turn a disabled one back on.
+OP_APPS_ENABLED = "apps_enabled"
OP_ROOT_ADD = "root_add"
OP_ROOT_REMOVE = "root_remove"
OP_GROUP_ATTACH = "group_attach"
diff --git a/packages/meshbay-common/src/meshbay_common/protocol.py b/packages/meshbay-common/src/meshbay_common/protocol.py
index 06acb8b..53e5085 100644
--- a/packages/meshbay-common/src/meshbay_common/protocol.py
+++ b/packages/meshbay-common/src/meshbay_common/protocol.py
@@ -80,6 +80,8 @@ class MNP:
MEMBER_UNPIN_ACK = "member_unpin_ack"
MEMBER_UPLOAD = "member_upload" # operator → node: may members upload?
MEMBER_UPLOAD_ACK = "member_upload_ack"
+ APPS_ENABLED = "apps_enabled" # operator → node: which group apps to show
+ APPS_ENABLED_ACK = "apps_enabled_ack"
# Device linking. A new device files a request bound to a code it displays;
# an already-pinned device of the same account approves it. Neither the hub
# nor the node can produce the countersignature.