Spaces:
Sleeping

api / src /events /schemas /analytics.schema.ts
Amal Jose
added files
4e83772
Raw History Blame Contribute Delete
426 Bytes
import z from "zod";
export const analyticsEventSchema = z
.object({
projectId: z.string(),
path: z.string(),
statusCode: z.number(),
responseTime: z.number(),
responseSize: z.number(),
ip: z.string(),
uaBrowser: z.string().optional(),
uaOs: z.string().optional(),
referer: z.string().optional(),
timestamp: z.number(),
})
.strict();
export type AnalyticsEvent = z.infer<typeof analyticsEventSchema>;