export interface RetryPolicy { maxRetries: number; retryDelay: number; backoffMultiplier: number; } export interface Webhook { id: string; workspaceId: string; name: string; url: string; events: string[]; agentIds: string[]; secret: string | null; signingKey: string | null; isActive: boolean; retryPolicy: RetryPolicy; lastDelivery: string | null; lastError: string | null; deliveryCount: number; failureCount: number; metadata: Record; createdAt: string; updatedAt: string; } export interface WebhookFilter { workspaceId?: string; isActive?: boolean; events?: string[]; search?: string; } export interface CreateWebhookInput { workspaceId: string; name: string; url: string; events: string[]; agentIds?: string[]; secret?: string; signingKey?: string; isActive?: boolean; retryPolicy?: Partial; metadata?: Record; } export interface UpdateWebhookInput { name?: string; url?: string; events?: string[]; agentIds?: string[]; secret?: string; signingKey?: string; isActive?: boolean; retryPolicy?: Partial; metadata?: Record; } export declare const WEBHOOK_EVENTS: readonly ["agent:created", "agent:updated", "agent:deleted", "agent:online", "agent:offline", "vibe:created", "vibe:updated", "vibe:deleted", "vibe:error", "vibe:completed", "session:created", "session:closed", "session:error", "plugin:installed", "plugin:removed"]; export type WebhookEvent = (typeof WEBHOOK_EVENTS)[number]; /** Check if an event string is a custom (user-defined) event */ export declare const isCustomEvent: (event: string) => boolean;