From b932a3d92621e406f63ca717a448d5d24383ab9f Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 30 Jan 2026 14:40:26 +0200 Subject: [PATCH] fix: align snapshot schema with backend response --- surfsense_web/contracts/types/chat-threads.types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/surfsense_web/contracts/types/chat-threads.types.ts b/surfsense_web/contracts/types/chat-threads.types.ts index f761df0fd..d360c3732 100644 --- a/surfsense_web/contracts/types/chat-threads.types.ts +++ b/surfsense_web/contracts/types/chat-threads.types.ts @@ -6,7 +6,9 @@ import { z } from "zod"; export const snapshotInfo = z.object({ id: z.number(), share_token: z.string(), + public_url: z.string(), created_at: z.string(), + message_count: z.number(), }); /** @@ -17,7 +19,7 @@ export const createSnapshotRequest = z.object({ }); export const createSnapshotResponse = z.object({ - id: z.number(), + snapshot_id: z.number(), share_token: z.string(), public_url: z.string(), is_new: z.boolean(),