mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
feat: add getInviteInfo request/response schemas
This commit is contained in:
parent
e5f5e46312
commit
1b41b2ff23
1 changed files with 17 additions and 0 deletions
|
|
@ -212,6 +212,21 @@ export const deleteInviteResponse = z.object({
|
||||||
message: z.string(),
|
message: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get invite info by code
|
||||||
|
*/
|
||||||
|
export const getInviteInfoRequest = z.object({
|
||||||
|
invite_code: z.string(),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const getInviteInfoResponse = z.object({
|
||||||
|
invite_code: z.string(),
|
||||||
|
search_space_name: z.string(),
|
||||||
|
role_name: z.string().nullable(),
|
||||||
|
expires_at: z.string().nullable(),
|
||||||
|
is_valid: z.boolean(),
|
||||||
|
});
|
||||||
|
|
||||||
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>;
|
||||||
|
|
@ -243,3 +258,5 @@ export type UpdateInviteRequest = z.infer<typeof updateInviteRequest>;
|
||||||
export type UpdateInviteResponse = z.infer<typeof updateInviteResponse>;
|
export type UpdateInviteResponse = z.infer<typeof updateInviteResponse>;
|
||||||
export type DeleteInviteRequest = z.infer<typeof deleteInviteRequest>;
|
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 GetInviteInfoResponse = z.infer<typeof getInviteInfoResponse>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue