schemas/nostr: add `search` key to filters
This commit is contained in:
parent
af76d8cbae
commit
e976f51d55
|
@ -29,6 +29,7 @@ const filterSchema = z.object({
|
||||||
since: z.number().int().nonnegative().optional(),
|
since: z.number().int().nonnegative().optional(),
|
||||||
until: z.number().int().nonnegative().optional(),
|
until: z.number().int().nonnegative().optional(),
|
||||||
limit: z.number().int().nonnegative().optional(),
|
limit: z.number().int().nonnegative().optional(),
|
||||||
|
search: z.string().optional(),
|
||||||
}).passthrough().and(
|
}).passthrough().and(
|
||||||
z.record(
|
z.record(
|
||||||
z.custom<`#${string}`>((val) => typeof val === 'string' && val.startsWith('#')),
|
z.custom<`#${string}`>((val) => typeof val === 'string' && val.startsWith('#')),
|
||||||
|
|
Loading…
Reference in New Issue