use strict zod objects and hide proto on targets

This commit is contained in:
Milo Schwartz
2024-11-14 00:00:17 -05:00
parent 44b932937f
commit ba3505a385
14 changed files with 154 additions and 162 deletions

View File

@@ -15,13 +15,15 @@ const createSiteParamsSchema = z.object({
orgId: z.string(),
});
const createSiteSchema = z.object({
name: z.string().min(1).max(255),
exitNodeId: z.number().int().positive(),
subdomain: z.string().min(1).max(255).optional(),
pubKey: z.string(),
subnet: z.string(),
});
const createSiteSchema = z
.object({
name: z.string().min(1).max(255),
exitNodeId: z.number().int().positive(),
subdomain: z.string().min(1).max(255).optional(),
pubKey: z.string(),
subnet: z.string(),
})
.strict();
export type CreateSiteResponse = {
name: string;