mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-19 18:35:18 +02:00
search bar
This commit is contained in:
parent
f22087cbc3
commit
a1b6789f6c
5 changed files with 645 additions and 1 deletions
|
|
@ -396,6 +396,22 @@ const ipcSchemas = {
|
|||
req: z.object({ path: z.string() }),
|
||||
res: z.object({ data: z.string(), mimeType: z.string(), size: z.number() }),
|
||||
},
|
||||
// Search channels
|
||||
'search:query': {
|
||||
req: z.object({
|
||||
query: z.string(),
|
||||
limit: z.number().optional(),
|
||||
types: z.array(z.enum(['knowledge', 'chat'])).optional(),
|
||||
}),
|
||||
res: z.object({
|
||||
results: z.array(z.object({
|
||||
type: z.enum(['knowledge', 'chat']),
|
||||
title: z.string(),
|
||||
preview: z.string(),
|
||||
path: z.string(),
|
||||
})),
|
||||
}),
|
||||
},
|
||||
} as const;
|
||||
|
||||
// ============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue