mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +02:00
feat: add acceptInvite request/response schemas
This commit is contained in:
parent
1b41b2ff23
commit
fdfba4bb4a
1 changed files with 14 additions and 0 deletions
|
|
@ -227,6 +227,18 @@ export const getInviteInfoResponse = z.object({
|
||||||
is_valid: z.boolean(),
|
is_valid: z.boolean(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accept invite
|
||||||
|
*/
|
||||||
|
export const acceptInviteRequest = z.object({
|
||||||
|
invite_code: z.string(),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const acceptInviteResponse = z.object({
|
||||||
|
message: z.string(),
|
||||||
|
search_space_id: z.number(),
|
||||||
|
});
|
||||||
|
|
||||||
export type Role = z.infer<typeof role>;
|
export type Role = z.infer<typeof role>;
|
||||||
export type Membership = z.infer<typeof membership>;
|
export type Membership = z.infer<typeof membership>;
|
||||||
export type Invite = z.infer<typeof invite>;
|
export type Invite = z.infer<typeof invite>;
|
||||||
|
|
@ -260,3 +272,5 @@ export type DeleteInviteRequest = z.infer<typeof deleteInviteRequest>;
|
||||||
export type DeleteInviteResponse = z.infer<typeof deleteInviteResponse>;
|
export type DeleteInviteResponse = z.infer<typeof deleteInviteResponse>;
|
||||||
export type GetInviteInfoRequest = z.infer<typeof getInviteInfoRequest>;
|
export type GetInviteInfoRequest = z.infer<typeof getInviteInfoRequest>;
|
||||||
export type GetInviteInfoResponse = z.infer<typeof getInviteInfoResponse>;
|
export type GetInviteInfoResponse = z.infer<typeof getInviteInfoResponse>;
|
||||||
|
export type AcceptInviteRequest = z.infer<typeof acceptInviteRequest>;
|
||||||
|
export type AcceptInviteResponse = z.infer<typeof acceptInviteResponse>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue