diff --git a/surfsense_web/contracts/types/rbac.types.ts b/surfsense_web/contracts/types/rbac.types.ts index 5bc78ab01..33ee5682f 100644 --- a/surfsense_web/contracts/types/rbac.types.ts +++ b/surfsense_web/contracts/types/rbac.types.ts @@ -212,6 +212,21 @@ export const deleteInviteResponse = z.object({ 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; export type Membership = z.infer; export type Invite = z.infer; @@ -243,3 +258,5 @@ export type UpdateInviteRequest = z.infer; export type UpdateInviteResponse = z.infer; export type DeleteInviteRequest = z.infer; export type DeleteInviteResponse = z.infer; +export type GetInviteInfoRequest = z.infer; +export type GetInviteInfoResponse = z.infer;