feat: implement leave search space functionality for non-owners and update related UI components

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-01-13 02:06:35 -08:00
parent 6622a8c582
commit d140f6393e
6 changed files with 154 additions and 49 deletions

View file

@ -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>;