Add Zalo channel adapter with webhook and send path

This commit is contained in:
William Valentin
2026-02-16 13:11:51 -08:00
parent 891ccb696e
commit 8bed99c770
16 changed files with 491 additions and 6 deletions
+10
View File
@@ -521,6 +521,15 @@ const feishuSchema = z.object({
endpoint: z.string().url('Feishu endpoint must be a valid URL').optional(),
}).optional();
const zaloSchema = z.object({
oa_access_token: z.string().min(1, 'Zalo oa_access_token is required'),
endpoint: z.string().url('Zalo endpoint must be a valid URL').optional(),
webhook_token: z.string().optional(),
allowed_user_ids: z.array(z.string()).default([]),
require_mention: z.boolean().default(true),
mention_name: z.string().default('flynn'),
}).optional();
const browserSchema = z.object({
enabled: z.boolean().default(false),
executable_path: z.string().optional(),
@@ -702,6 +711,7 @@ export const configSchema = z.object({
bluebubbles: bluebubblesSchema,
line: lineSchema,
feishu: feishuSchema,
zalo: zaloSchema,
server: serverSchema.default({}),
models: modelsSchema,
backends: backendsSchema.default({}),