feat: add gateway webhooks

This commit is contained in:
Peter Steinberger
2025-12-24 14:32:55 +00:00
parent aa62ac4042
commit 1ed5ca3fde
8 changed files with 593 additions and 1 deletions

View File

@@ -62,6 +62,12 @@ export type CronConfig = {
maxConcurrentRuns?: number;
};
export type HooksConfig = {
enabled?: boolean;
path?: string;
token?: string;
};
export type TelegramConfig = {
botToken?: string;
requireMention?: boolean;
@@ -271,6 +277,7 @@ export type ClawdisConfig = {
web?: WebConfig;
telegram?: TelegramConfig;
cron?: CronConfig;
hooks?: HooksConfig;
bridge?: BridgeConfig;
discovery?: DiscoveryConfig;
canvasHost?: CanvasHostConfig;
@@ -461,6 +468,13 @@ const ClawdisSchema = z.object({
maxConcurrentRuns: z.number().int().positive().optional(),
})
.optional(),
hooks: z
.object({
enabled: z.boolean().optional(),
path: z.string().optional(),
token: z.string().optional(),
})
.optional(),
web: z
.object({
heartbeatSeconds: z.number().int().positive().optional(),