feat: add webhook body template and headers support for channels

This commit is contained in:
2026-03-16 01:10:26 +01:00
parent db461db270
commit e76167134b
12 changed files with 366 additions and 23 deletions

View File

@@ -149,6 +149,8 @@ export interface ChannelResponse {
logo_opacity: number;
webhook_url?: string | null;
webhook_poll_interval_secs?: number;
webhook_body_template?: string | null;
webhook_headers?: string | null;
created_at: string;
updated_at: string;
}
@@ -161,6 +163,8 @@ export interface CreateChannelRequest {
access_password?: string;
webhook_url?: string;
webhook_poll_interval_secs?: number;
webhook_body_template?: string;
webhook_headers?: string;
}
export interface UpdateChannelRequest {
@@ -180,6 +184,10 @@ export interface UpdateChannelRequest {
/** null = clear webhook */
webhook_url?: string | null;
webhook_poll_interval_secs?: number;
/** null = clear template */
webhook_body_template?: string | null;
/** null = clear headers */
webhook_headers?: string | null;
}
// Media & Schedule