import { ErrorResponse } from './auth'; export interface PhraseMatchConfig { phrases: string[]; } export interface AutomationAction { type: string; config?: Record; } export interface PhraseMatchAction { type: 'phrase_match'; config: PhraseMatchConfig; } export interface Automation { id: string; partner_app_id: string; name: string; description?: string; trigger_type: string; actions: AutomationAction[]; status: AutomationStatus; created_at: string; updated_at: string; } export type AutomationStatus = 'active' | 'inactive'; export interface CreateAutomationRequest { name: string; description?: string; trigger_type: string; actions: AutomationAction[]; } export interface UpdateAutomationRequest { name?: string; description?: string; trigger_type?: string; actions?: AutomationAction[]; status?: AutomationStatus; is_active?: boolean; } export interface AutomationListParams { limit?: number; offset?: number; } export interface AutomationListResponse { items: Automation[]; total: number; limit: number; offset: number; } export interface WebhookDelivery { id: string; partner_app_id: string; event_type: string; event_id: string; delivery_status: string; http_status_code?: number; retry_count: number; next_retry_at?: string; delivered_at?: string; error_message: string; created_at: string; } export interface WebhookDeliveryListParams { limit?: number; offset?: number; status?: string; event_type?: string; } export interface WebhookDeliveryListResponse { deliveries: WebhookDelivery[]; total: number; limit: number; offset: number; } export interface PartnerApp { id: string; name: string; description?: string; company_name: string; client_id: string; primary_contact_email: string; webhook_url?: string; webhook_enabled: boolean; webhook_filter?: { type: string; events: string[]; } | null; status: string; slug?: string; created_at: string; updated_at: string; } export interface UpdatePartnerAppRequest { name?: string; description?: string; webhook_url?: string | null; slug?: string; } export interface UpdatePartnerAppStatusRequest { status: 'active' | 'suspended' | 'inactive'; } export interface UpdateWebhookStatusRequest { enabled: boolean; pending_disposition?: 'abandon' | 'deliver'; } export interface SetWebhookFilterRequest { type: 'include' | 'exclude'; events: string[]; } export interface SetWebhookFilterError extends ErrorResponse { valid_event_types?: string[]; } export interface UserConnection { id: string; user_id: string; user_name?: string; user_email?: string; oauth_scopes: string[]; oauth_expires_at?: string; feature_activated_at?: string; last_used_at?: string; status: string; created_at: string; updated_at: string; } export interface UserConnectionListParams { limit?: number; offset?: number; user_id?: string; status?: 'active' | 'revoked' | 'expired'; } export interface UserConnectionListResponse { items: UserConnection[]; total: number; limit: number; offset: number; } //# sourceMappingURL=automations.d.ts.map