File size: 282 Bytes
4e23b01 | 1 2 3 4 5 6 7 8 9 10 11 | import { z } from 'zod';
export const helloMessageSchema = z.object({
type: z.literal('hello'),
protocol_version: z.string().min(1),
server_id: z.string().min(1),
capabilities: z.array(z.string().min(1)),
});
export type HelloMessage = z.infer<typeof helloMessageSchema>;
|