Files
clawdbot/src/channels/plugins/config-schema.ts
2026-01-17 00:43:05 +00:00

13 lines
330 B
TypeScript

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