Download src/events/schemas/analytics.schema.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/events/schemas/analytics.schema.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/events/schemas/analytics.schema.ts
-
curl -L -o analytics.schema.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/events/schemas/analytics.schema.ts
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>; | |