mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
feat: implement leave search space functionality for non-owners and update related UI components
This commit is contained in:
parent
6622a8c582
commit
d140f6393e
6 changed files with 154 additions and 49 deletions
|
|
@ -64,6 +64,13 @@ export const deleteSearchSpaceResponse = z.object({
|
|||
message: z.literal("Search space deleted successfully"),
|
||||
});
|
||||
|
||||
/**
|
||||
* Leave search space (for non-owners)
|
||||
*/
|
||||
export const leaveSearchSpaceResponse = z.object({
|
||||
message: z.literal("Successfully left the search space"),
|
||||
});
|
||||
|
||||
// Inferred types
|
||||
export type SearchSpace = z.infer<typeof searchSpace>;
|
||||
export type GetSearchSpacesRequest = z.infer<typeof getSearchSpacesRequest>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue