mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
fix: align snapshot schema with backend response
This commit is contained in:
parent
b8338d8643
commit
b932a3d926
1 changed files with 3 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue