File size: 253 Bytes
4e23b01
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { z } from 'zod';

export const ackMessageSchema = z.object({
  type: z.literal('ack'),
  id: z.number().int().nonnegative(),
  code: z.number().int(),
  msg: z.string().optional(),
});

export type AckMessage = z.infer<typeof ackMessageSchema>;