Config: schema-driven channels and settings

This commit is contained in:
Shadow
2026-01-16 14:13:30 -06:00
committed by Peter Steinberger
parent bcfc9bead5
commit 1ad26d6fea
79 changed files with 2290 additions and 6326 deletions

View File

@@ -0,0 +1,12 @@
import type { ZodTypeAny } from "zod";
import type { ChannelConfigSchema } from "./types.js";
export function buildChannelConfigSchema(schema: ZodTypeAny): ChannelConfigSchema {
return {
schema: schema.toJSONSchema({
target: "draft-07",
unrepresentable: "any",
}) as Record<string, unknown>,
};
}