mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
feat: add leaveSearchSpace request/response schemas
This commit is contained in:
parent
9ec5b324fd
commit
86b8cd6eff
1 changed files with 13 additions and 0 deletions
|
|
@ -148,6 +148,17 @@ export const deleteMembershipResponse = z.object({
|
|||
message: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* Leave search space
|
||||
*/
|
||||
export const leaveSearchSpaceRequest = z.object({
|
||||
search_space_id: z.number(),
|
||||
});
|
||||
|
||||
export const leaveSearchSpaceResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
export type Role = z.infer<typeof role>;
|
||||
export type Membership = z.infer<typeof membership>;
|
||||
export type Invite = z.infer<typeof invite>;
|
||||
|
|
@ -169,3 +180,5 @@ export type UpdateMembershipRequest = z.infer<typeof updateMembershipRequest>;
|
|||
export type UpdateMembershipResponse = z.infer<typeof updateMembershipResponse>;
|
||||
export type DeleteMembershipRequest = z.infer<typeof deleteMembershipRequest>;
|
||||
export type DeleteMembershipResponse = z.infer<typeof deleteMembershipResponse>;
|
||||
export type LeaveSearchSpaceRequest = z.infer<typeof leaveSearchSpaceRequest>;
|
||||
export type LeaveSearchSpaceResponse = z.infer<typeof leaveSearchSpaceResponse>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue