From 1b41b2ff2310284ca338bf7e553955885603352c Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 15 Dec 2025 19:43:07 +0000 Subject: [PATCH] feat: add getInviteInfo request/response schemas --- surfsense_web/contracts/types/rbac.types.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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;