From 34a26f950ed2cd8b3199f0a0e55d996b21e54c3a Mon Sep 17 00:00:00 2001 From: "k." Date: Thu, 6 Feb 2025 09:42:00 +0330 Subject: [PATCH] Update 86.md --- 86.md | 57 +++++++++++++++++++-------------------------------------- 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/86.md b/86.md index b0a44629..ed1f62a6 100644 --- a/86.md +++ b/86.md @@ -30,7 +30,7 @@ Then it should return a response in the below format: Here is a list of **methods** that MAY be supported: -* `supported_methods`: +* `supportedmethods`: - **params:** `[]` - **result:** `["", "", /* rest of method names... */ ]` @@ -61,32 +61,13 @@ Extra fields MAY be sent from the relay depending on implementation. --- -* `set_nip11`: - - **params:** - ```jsonc - [ - { - "name": "new name", - "description": "new description", - "icon": null // remove icon. - // and more... - } - ] - ``` - - **result:** `true` (a boolean always set to `true`) - -The provided input is a potentially incomplete json object of [NIP-11](./11.md) document. -Relay SHOULD replace provided fields with new ones, add non-existing fields, and remove fields set to null. - ---- - -* `list_events_needing_moderation`: +* `listeventsneedingmoderation`: - **params:** `[]` - **result:** `[{ "id": "<32-byte-hex>", "reason": "" }, ...]` (Relay MAY return reported, muted profiles and similar events as a result.) --- -* `ban_pubkey`: +* `banpubkey`: - **params:** `["<32-byte-hex-public-key>", ""]` - **result:** `true` (a boolean always set to `true`) @@ -94,25 +75,25 @@ The relay MAY remove events sent by `pubkey` and prevent new events from being w --- -* `list_banned_pubkeys`: +* `listbannedpubkeys`: - **params:** `[]` - **result:** `[{"pubkey": "<32-byte-hex>", "reason": ""}, ...]` (an array of objects) --- -* `allow_pubkey`: +* `allowpubkey`: - **params:** `["<32-byte-hex-public-key>", ""]` - **result:** `true` (a boolean always set to `true`) --- -* `list_allowed_pubkeys`: +* `listallowedpubkeys`: - **params:** `[]` - **result:** `[{"pubkey": "<32-byte-hex>", "reason": ""}, ...]` (an array of objects) --- -* `ban_event`: +* `banevent`: - **params:** `["<32-byte-hex-event-id>", ""]` - **result:** `true` (a boolean always set to `true`) @@ -120,67 +101,67 @@ Relay SHOULD delete and prevent re-broadcasting of event. --- -* `list_banned_events`: +* `listbannedevents`: - **params:** `[]` - **result:** `[{"id": "<32-byte-hex>", "reason": ""}, ...]` (an array of objects) --- -* `allow_event`: +* `allowevent`: - **params:** `["<32-byte-hex-event-id>", ""]` - **result:** `true` (a boolean always set to `true`) --- -* `list_allowed_events`: +* `listallowedevents`: - **params:** `[]` - **result:** `[{"id": "<32-byte-hex>", "reason": ""}, ...]` (an array of objects) --- -* `allow_kinds`: +* `allowkinds`: - **params:** `(, , /* and more... */)` - **result:** `true` (a boolean always set to `true`) --- -* `disallow_kinds`: +* `disallowkinds`: - **params:** `(, , /* and more... */)` - **result:** `true` (a boolean always set to `true`) --- -* `list_disallowed_kinds`: +* `listdisallowedkinds`: - **params:** `[]` - **result:** `(, , /* and more... */)` (an array of objects) --- -* `list_allowed_kinds`: +* `listallowedkinds`: - **params:** `[]` - **result:** `(, , /* and more... */)` (an array of objects) --- -* `block_ip`: +* `blockip`: - **params:** `["", ""]` - **result:** `true` (a boolean always set to `true`) --- -* `unblock_ip`: +* `unblockip`: - **params:** `[""]` - **result:** `true` (a boolean always set to `true`) --- -* `list_blocked_ips`: +* `listblockedips`: - **params:** `[]` - **result:** `[{"ip": "", "reason": ""}, ...]` (an array of objects) --- -* `grant_admin`: +* `grantadmin`: - **params:** `["<32-byte-hex-public-key>", { "allowed_methods": [...]}]` - **result:** `true` (a boolean always set to `true`) @@ -188,7 +169,7 @@ If the admin right is already granted, the allowed methods list must be rewritte --- -* `revoke_admin`: +* `revokeadmin`: - **params:** `["<32-byte-hex-public-key>", { "disallowed_methods": [...]}]` - **result:** `true` (a boolean always set to `true`)