import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
import { z } from "zod";
//#region extensions/weixin/src/config-schema.ts
var WeixinAccountConfigSchema, WeixinConfigSchema;
var init_config_schema = __esmMin((() => {
	WeixinAccountConfigSchema = z.object({
		name: z.string().optional(),
		enabled: z.boolean().optional(),
		cdnBaseUrl: z.string().optional(),
		routeTag: z.union([z.string(), z.number()]).optional(),
		dmPolicy: z.enum([
			"pairing",
			"allowlist",
			"open",
			"disabled"
		]).default("open"),
		allowFrom: z.array(z.string()).default([]),
		streamMode: z.enum([
			"off",
			"partial",
			"block"
		]).optional(),
		debug: z.boolean().optional()
	});
	WeixinConfigSchema = z.object({
		enabled: z.boolean().default(false),
		dmPolicy: z.enum([
			"pairing",
			"allowlist",
			"open",
			"disabled"
		]).default("open"),
		allowFrom: z.array(z.string()).default([]),
		debug: z.boolean().default(false),
		streamMode: z.enum([
			"off",
			"partial",
			"block"
		]).optional(),
		historyLimit: z.number().default(50),
		textChunkLimit: z.number().default(4e3),
		routeTag: z.union([z.string(), z.number()]).optional(),
		accounts: z.record(z.string(), WeixinAccountConfigSchema).optional()
	});
}));
//#endregion
init_config_schema();
export { WeixinAccountConfigSchema, WeixinConfigSchema, init_config_schema };

//# sourceMappingURL=config-schema.js.map