Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import { z } from "zod";
export const basicAuthInput = z.union([
z.object({
method: z.literal("basic"),
login: z.string(),
password: z.string(),
}),
z.object({
type: z.literal("basic"),
login: z.string(),
password: z.string(),
}),
]);
export type BasicAuthInput = z.infer<typeof basicAuthInput>;
export const wsAuthConfig = z.object({
version: z.literal(1),
routes: z.record(z.string(), basicAuthInput),
});
export type WsAuthConfig = z.infer<typeof wsAuthConfig>;