From 7e7ddea0554e8c3208a73f82ab9ef2e1bcc42ee1 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 22 Nov 2023 17:37:52 -0300 Subject: [PATCH] edit-group-status permission. --- 29.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/29.md b/29.md index 93b0edfb..398b3296 100644 --- a/29.md +++ b/29.md @@ -99,14 +99,15 @@ Clients can send these events to a relay in order to accomplish a moderation act Each moderation action uses a different kind and requires different arguments, which are given as tags. These are defined in the following table: -| kind | name | tags | -| --- | --- | --- | -| 9000 | `add-user` | `p` (pubkey hex) | -| 9001 | `remove-user` | `p` (pubkey hex) | -| 9002 | `edit-metadata` | `name`, `about`, `picture` (string) | -| 9003 | `add-permission` | `p` (pubkey), `permission` (name) | -| 9004 | `remove-permission` | `p` (pubkey), `permission` (name) | -| 9005 | `delete-event` | `e` (id hex) | +| kind | name | tags | +| --- | --- | --- | +| 9000 | `add-user` | `p` (pubkey hex) | +| 9001 | `remove-user` | `p` (pubkey hex) | +| 9002 | `edit-metadata` | `name`, `about`, `picture` (string) | +| 9003 | `add-permission` | `p` (pubkey), `permission` (name) | +| 9004 | `remove-permission` | `p` (pubkey), `permission` (name) | +| 9005 | `delete-event` | `e` (id hex) | +| 9006 | `edit-group-status` | `public`, `open`, `private`, `closed` | - *group metadata* (`kind:39000`) (optional) @@ -123,14 +124,14 @@ If the group is forked and hosted in multiple relays, there will be multiple ver ["name", "Pizza Lovers"], ["picture", "https://pizza.com/pizza.png"], ["about", "a group for people who love pizza"], - ["public"], - ["open"] + ["public"], // or ["private"] + ["open"] // or ["closed"] ] ... } ``` -`name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone. `open` signals that anyone can request to join and the request will be automatically granted. +`name`, `picture` and `about` are basic metadata for the group for display purposes. `public` signals the group can be _read_ by anyone, while `private` signals that only AUTHed users can read. `open` signals that anyone can request to join and the request will be automatically granted, while `closed` signals that members must be pre-approved or that requests to join will be manually handled. The [NIP-19](19.md) `naddr` pointer for this event including with a mandatory relay can be used as the canonical group identifier. @@ -148,6 +149,7 @@ The list of capabilities, as defined by this NIP, for now, is the following: - `remove-user` - `add-permission` - `remove-permission` +- `edit-group-status` ```js {