Revert "Upgrade linter and formatter to Ultracite" (#1226)

This commit is contained in:
josh 2025-09-21 12:03:29 +01:00 committed by GitHub
parent 0e320b391d
commit 1aff7d9868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 8334 additions and 6943 deletions

View file

@ -1,13 +1,13 @@
import { z } from "zod";
import { z } from 'zod';
const textPartSchema = z.object({
type: z.enum(["text"]),
type: z.enum(['text']),
text: z.string().min(1).max(2000),
});
const filePartSchema = z.object({
type: z.enum(["file"]),
mediaType: z.enum(["image/jpeg", "image/png"]),
type: z.enum(['file']),
mediaType: z.enum(['image/jpeg', 'image/png']),
name: z.string().min(1).max(100),
url: z.string().url(),
});
@ -18,11 +18,11 @@ export const postRequestBodySchema = z.object({
id: z.string().uuid(),
message: z.object({
id: z.string().uuid(),
role: z.enum(["user"]),
role: z.enum(['user']),
parts: z.array(partSchema),
}),
selectedChatModel: z.enum(["chat-model", "chat-model-reasoning"]),
selectedVisibilityType: z.enum(["public", "private"]),
selectedChatModel: z.enum(['chat-model', 'chat-model-reasoning']),
selectedVisibilityType: z.enum(['public', 'private']),
});
export type PostRequestBody = z.infer<typeof postRequestBodySchema>;