File size: 1,047 Bytes
d714fad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export declare class AgentHook {
    id: string;
    tenant_id: string;
    agent_id: string;
    name: string;
    description: string | null;
    trigger: 'before_message' | 'after_response';
    type: 'sql_select' | 'webhook';
    order_index: number;
    is_active: boolean;
    sql: string | null;
    db_connection_id: string | null;
    validate_rule: {
        conditions?: Array<{
            column: string;
            op: '=' | '!=' | '<' | '<=' | '>' | '>=' | 'is_null' | 'is_empty' | 'contains';
            value: any;
            block_message?: string;
        }>;
        logic?: 'AND' | 'OR';
        column?: string;
        op?: '=' | '!=' | '<' | '<=' | '>' | '>=' | 'is_null' | 'is_empty' | 'contains';
        value?: any;
        block: boolean;
        block_message: string;
    } | null;
    webhook_url: string | null;
    webhook_method: 'POST' | 'PUT' | null;
    webhook_headers: Record<string, string> | null;
    webhook_payload_template: Record<string, any> | null;
    created_at: Date;
    updated_at: Date;
}