fix: update invite schemas to match backend and fix cache key reference

This commit is contained in:
CREDO23 2025-12-18 07:37:19 +00:00
parent f8ec87c7f2
commit 1c00e6f12e
2 changed files with 41 additions and 10 deletions

View file

@ -77,11 +77,10 @@ export const getInviteInfoRequest = z.object({
});
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(),
message: z.string().nullable(),
});
/**
@ -94,6 +93,8 @@ export const acceptInviteRequest = z.object({
export const acceptInviteResponse = z.object({
message: z.string(),
search_space_id: z.number(),
search_space_name: z.string(),
role_name: z.string().nullable(),
});
export type Invite = z.infer<typeof invite>;