From e976f51d550d5d237229ea4ccca47afb6aeede0e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 30 Aug 2023 16:19:21 -0500 Subject: [PATCH] schemas/nostr: add `search` key to filters --- src/schemas/nostr.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/schemas/nostr.ts b/src/schemas/nostr.ts index 3f9c902..6b5c30c 100644 --- a/src/schemas/nostr.ts +++ b/src/schemas/nostr.ts @@ -29,6 +29,7 @@ const filterSchema = z.object({ since: z.number().int().nonnegative().optional(), until: z.number().int().nonnegative().optional(), limit: z.number().int().nonnegative().optional(), + search: z.string().optional(), }).passthrough().and( z.record( z.custom<`#${string}`>((val) => typeof val === 'string' && val.startsWith('#')),