feat: add webhook body template and headers support for channels
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user