From a54bf02278431958eeddaec69e856d6563fd836f Mon Sep 17 00:00:00 2001 From: Believethehype Date: Tue, 20 Feb 2024 10:36:11 +0100 Subject: [PATCH] add 5303, search profiles --- kinds/5303.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ ranges/53xx.md | 4 ++++ 2 files changed, 54 insertions(+) create mode 100644 kinds/5303.md diff --git a/kinds/5303.md b/kinds/5303.md new file mode 100644 index 0000000..95fdaf7 --- /dev/null +++ b/kinds/5303.md @@ -0,0 +1,50 @@ +--- +layout: default +title: Nostr People Search +description: Job to search for profiles based on a prompt +--- + +# Input +Text to be included in the search + +# Output + +A `content` JSON-stringified list of tags. Tags SHOULD be `p`. + +# Params + +* `max_results`: Maximum number of events to return (Optional parameter) + +# How clients can use this + +Clients can ask a Search DVM to return profiles based on certain filters. + + +# Example + +#### Request +```json +{ + "content": "", + + "kind": 5303, + "tags": + [ + [ "i", "Jack", "text" ], + ["param","max_results","500"] + ] +} +``` + +#### Response +```json +{ + "kind": 6303, + "content": ' + [ "p", "<...>" ], + [ "p", "<...>" ], + [ "p", "<...>" ], + [ "p", "<...>" ] + ' +} +``` \ No newline at end of file diff --git a/ranges/53xx.md b/ranges/53xx.md index 037318c..82929a5 100644 --- a/ranges/53xx.md +++ b/ranges/53xx.md @@ -30,4 +30,8 @@ grid_navigation: excerpt: "Used to search for notes. Kind 5302" cta: View url: '/kinds/5302' + - title: Nostr People Search + excerpt: "Used to search for profiles. Kind 5303" + cta: View + url: '/kinds/5303' --- \ No newline at end of file